PDF generation for ionic frmaework

I’ve written a code for generating pdf for an application, while running in emulator the pdf is generating and whatever the required output is being displayed is correct. After genartaing apk and testing in mobile pdf is been still generating but the data is’nt present over there.