Closed williamrijksen closed 3 years ago
Introduces the permission changes listeners to the appcelerator module
add the following code to your test device/application
var onesignal = require('com.williamrijksen.onesignal'); onesignal.addEventListener('permissionChanged', function (evt) { console.log(JSON.stringify(evt)); });
// evt iOS {"to":{"status":2,"hasPrompted":true},"from":{"status":1,"hasPrompted":true}} // evt android {"to":{"enabled":true},"from":{"enabled":false}}
Blocked by #62
Context
Introduces the permission changes listeners to the appcelerator module
How to test
add the following code to your test device/application
Notes
Blocked by #62