Questions tagged [userinfo]

151 questions
121
votes
10 answers

Get user info via Google API

Is it possible to get information from user's profile via Google API? If it is possible, which API should I use? I'm interesting in such information: Url to the user profile (e.g. https://profiles.google.com/115063121183536852887); Gender…
glagola
  • 2,142
  • 3
  • 17
  • 20
57
votes
7 answers

Swift read userInfo of remote notification

I implemented a function to open an AlertView when I receive a remote notification like this: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]){ var notifiAlert = UIAlertView() …
0x52
  • 883
  • 1
  • 11
  • 17
24
votes
23 answers

Is it a good idea to let your users change their usernames?

I'm back and forth on the idea of letting the users on my site change their usernames, which would be displayed through out the site. On one side I want to give the users flexibility. But on the other, I don't want them to use this feature as a way…
Donny V.
  • 22,248
  • 13
  • 65
  • 79
18
votes
1 answer

NSNotificationCenter passing structs as part of the UserInfo

Due to NSNotificationCenter.defaultCenter().postNotificationName userinfo only accepting dictionaries with data complying with AnyObject protocol, does anyone have any suggestions how to post structs as part of an NSNotification? My initial thought…
Daniel Creagh
  • 502
  • 4
  • 11
16
votes
5 answers

How to add userInfo to a UIAlertView?

I would like to know how to add a userInfo object, or any NSDictionary, to a UIAlertView? Thank you.
aLt
  • 218
  • 2
  • 7
15
votes
3 answers

swift NSTimer userinfo

I'm trying to pass a UIButton with a NSTimer's userinfo. I've read every post on stackoverflow on NSTimers. I'm getting very close but can't quite get there. This post has helped Swift NSTimer retrieving userInfo as CGPoint func…
user2164327
  • 283
  • 1
  • 2
  • 13
11
votes
1 answer

UNMutableNotificationContent with custom object in userinfo

I want to use a cutom object in userinfo of a UNMutableNotificationContent but it doesn’t work. When I put a custom object in userinfo, notification is not fired. With this code, a notification is fired: let content =…
squall2022
  • 214
  • 4
  • 9
11
votes
1 answer

UserInfo Dictionaries on CoreData

What does this part of Apple core data documentation means? User Info Dictionaries Many of the elements in a managed object model—entities, attributes, and relationships—have an associated user info dictionary. You can put whatever information you…
drasick
  • 280
  • 4
  • 14
9
votes
2 answers

How can i get user info with node.js

I am using express.js I should learn user's browser name, browser language, country. How can i learn these ? I tried useragent but i think it just give browser.
Kerem Çakır
  • 401
  • 2
  • 7
  • 19
9
votes
4 answers

Keycloak, openId-connect userInfo

I'm trying to get info about user roles using openId-connect endpoints of Keycloak. I'm using the /auth/realms/moje/protocol/openid-connect/userinfo endpoint to get info about the authenticated user. I'm able to get info about the name, username,…
Dominik Koszkul
  • 85
  • 1
  • 1
  • 5
8
votes
2 answers

Unable to get some user account information in UWP app - In-premise active directory (Not Azure AD)

In a UWP app, I have enabled the User Account Information capability. I need to get the username and the domain name (each of them separately) of the currently logged on user (The users are logged on with an in-premise Active Directory account - Not…
slayernoah
  • 4,382
  • 11
  • 42
  • 73
8
votes
2 answers

How to get user image through user id in Google plus?

I used to get user image through this URL https://plus.google.com/s2/photos/profile/(user_id)?sz=150 but now what all I am getting is 404 error or no image. I know google has changed its policies and way it connects and allows other to get…
TheMohanAhuja
  • 1,855
  • 2
  • 19
  • 30
7
votes
1 answer

How to get user's information by using TikTok SDK Login?

I am using TikTok SDK login from TikTok for developers portal. https://developers.tiktok.com in my mobile app. (We have registered and got the client_id and client_secret) I am able to authenticate user from the SDK, but no user information is…
Salman Riyaz
  • 808
  • 2
  • 14
  • 37
7
votes
3 answers

Get Userinfo from Oauth2 Google Contacts API

Error which i am getting: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized { "code" : 401, "errors" : [ { "domain" : "global", "location" : "Authorization", "locationType" : "header", "message"…
Love Sharma
  • 1,981
  • 1
  • 18
  • 37
6
votes
3 answers

NSTimer userInfo. How object is passing to the selector?

I have this code: -(void)startRotation:(RDUtilitiesBarRotation)mode { rotationTimer = [NSTimer scheduledTimerWithTimeInterval:0.1f target:self selector:@selector(rotateSelectedItem:) userInfo:[NSNumber numberWithInt:mode]…
NemeSys
  • 555
  • 1
  • 10
  • 28
1
2 3
10 11