A module that help you to manage your device in parse for react-native app with examples and native methods
- Create an account on https://www.parse.com/
- Create an app with your account
see the Installation doc
- Add the native module to your javascript code
var ParseManagerAndroid = require('NativeModules').NotificationAndroidManager;- Then use it like so
ParseManagerAndroid.authenticate((err) => {
if (err) {
return console.log('Error while authenticate : ' + err);
}
console.log('This device is now register in my app');
}); // Authenticate this device as belonging to your application (add it to your Installation Class)
authenticate((err) => {
// if no error appears error will be null
}); // Add channel to channels field for the current device (in Installation Class)
subscribeToChannel(channel, (err) => {
// if no error appears error will be null
}); // Remove channel to channels field for the current device (in Installation Class)
unsubscribeToChannel(channel, (err) => {
// if no error appears error will be null
}); // Get the ObjectId field for the current device (in Installation Class)
getId((id) => {
// if id not found or error appears id will be null
}); // Get value from field for the current device (in Installation Class) and get
// it as a String
getString(field, (err, value) => {
// if no error appears error will be null
// if value not found or error appears value will be null or undefined
});