Get the unique iCloud token for a user
npm install react-native-icloud-user-token --save
- Go to
node_modules
➜react-native-icloud-user-token
and addRNICloudUserToken.m
to your project - Run your project (
Cmd+R
)
##Usage##
//Require the module
var ICloudUserToken = require('react-native-icloud-user-token');
ICloudUserToken.getToken(function (err, token) {
console.log('Error:', err, '\niCloud Token:', token);
});
or
ICloudUserToken.getTokenFromSuite('iCloud.com.some.container', function (err, token) {
console.log('Error:', err, '\niCloud Token:', token);
});