Screenshot of iPhone screen using ionic


#1

Hi friends

         I want to create a screenshot of my mobile screen using ionic,
         There is one plugin for screenshot. It is working fine in android.
         Also I can able to take screenshot in iPhone. but it is not shows up on the photo gallery.
         Can anyone help me out this?

#2

Try the screenshot plugin

or using Ionic Native wrapper: http://ionicframework.com/docs/v2/native/screenshot/


#3

Thanks ihadeed. I am using exactly the same plugin mentioned by you…

I can take take the screenshot. But it is stored in private/var/mobile… path.

I want to show this screenshot in the photo gallery. I cant see any pic of my screenshot in the gallery.

For android I have no problem.I am facing this issue in my iPhone only.


#4

Well I guess you would have to chain the output to a second plugin that will save it on the user accessible folders instead of the data folder.

Try the cordova-plugin-file. Ionic Native has a wrapper for that as well (although it might change soon).


#5

yeah…I will try this one ihadeed. Thanks for your reply.:slight_smile:


#6

@AravindhJey did you find the folder ?

where is the image saved in iphone
path ?


#7

The cordova plugin used returns the full path. The Ionic Native wrapper probably does, too.


#8

It is saving in the data directory. I can see the file path. Any way, now I am not saving the image.