[TIMOB-24152] iOS: Ti.Media.saveToPhotoGallery crashes on device in SDK 6.0.0.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-11-18T10:17:15.000+0000 |
Affected Version/s | Release 6.0.0 |
Fix Version/s | Release 6.0.1 |
Components | n/a |
Labels | ios, qe-6.0.1, regression |
Reporter | nicolomonili |
Assignee | Hans Knöchel |
Created | 2016-11-16T16:45:07.000+0000 |
Updated | 2017-02-28T10:04:45.000+0000 |
Description
With SDK *6.0.0.G.A* there is a problem with the function *Ti.Media.saveToPhotoGallery()*;
- On *simulator* works ok.
- On *device* when call the function the result is this :
"undefined is not a function (evaluating 'Ti.Media.saveToPhotoGallery')";
With SDK *5.5.1.G.A* works ok also on device
PR (master): https://github.com/appcelerator/titanium_mobile/pull/8613 PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8614 Test-case:
Verified as fixed, Ti.Media.saveToPhotoGallery no longer crashes on device with the latest 6.0.1 build. Tested On: iPhone 6 Plus 10.1.1 Device iPhone 5S 9.3.5 Device Mac OS Sierra (10.12.1) Ti SDK: 6.0.1.v20161118021643 Appc Studio: 4.8.0.201611121409 Appc NPM: 4.2.8 App CLI: 6.0.0 Xcode 8.1 Node v4.4.7 *Closing ticket.*
Guys, I'm on SDK 6.0.1, my
iphone/Classes/MediaModule.m
has the macros as well as my "iphone/Classes/defines.h" but it still saying ""undefined is not a function (evaluating 'Titanium.Media.saveToPhotoGallery')"" Do you have any clue? Thanks!Hey Carlos, that should be fixed then. Do you have an example code we could test? Did you test my above snippet? Just paste it here or send on Slack and we'll take care immediately.
yeap, with your code snippet it doesn't work as well =/ On simulator the app crashes and on device I got the error above