Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uport.requestCredentials({
- requested: ['name', 'phone', 'country', 'avatar'],
- notifications: true // We want this if we want to recieve credentials
- },
- (uri) => {
- Session.set({"uri": uri}); <-- URI address for qr code
- })
- .then((credentials) => {
- Session.set({"credentials": credentials}); <-- Store in sessions (works fine)
- })
- .then(()=>{
- myContract.method((err,res)=>{console.log(err,res)}); <-- Invalid Token Error
- }
- })
- Uncaught (in promise) Error: Error sending push notification to user: Invalid Token
- myContract.method((err,res)=>{console.log(err,res)})
Add Comment
Please, Sign In to add comment