Guest User

Untitled

a guest
Oct 17th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. uport.requestCredentials({
  2. requested: ['name', 'phone', 'country', 'avatar'],
  3. notifications: true // We want this if we want to recieve credentials
  4. },
  5. (uri) => {
  6. Session.set({"uri": uri}); <-- URI address for qr code
  7. })
  8.  
  9. .then((credentials) => {
  10. Session.set({"credentials": credentials}); <-- Store in sessions (works fine)
  11. })
  12.  
  13. .then(()=>{
  14. myContract.method((err,res)=>{console.log(err,res)}); <-- Invalid Token Error
  15. }
  16. })
  17.  
  18. Uncaught (in promise) Error: Error sending push notification to user: Invalid Token
  19.  
  20. myContract.method((err,res)=>{console.log(err,res)})
Add Comment
Please, Sign In to add comment