Guest User

Untitled

a guest
Nov 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function requestPermissonsIntent(app){
  2. const permission = [app.SupportedPermissions.NAME];
  3. app.askForPermission('Für eine korrekte Ausführung', permission);
  4. }
  5.  
  6. //later in my code when asking for the userID and userName
  7. if(app.isPermissionGranted()){
  8. const userName = app.getUserName().displayName;
  9. //getting the userName works fine
  10.  
  11. const userUID = app.getUser().userID;
  12. //userUID is undefinded
  13. ...
Add Comment
Please, Sign In to add comment