Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 31

vasuvasu
Lost but trying
Profile
Posts: 4
Reg: Oct 16, 2013
Chandigarh
4,390
11/28/13 02:34 AM (11 years ago)

Populating AppUserGuid in btn_apn_devices

I'm trying to register my device for Push notifications. I also need the AppUserGuid (Userid) field to be populated in the table so that the identity of the user registering the device is known. The field however is blank on registering as the device is registered immediately on starting the app for the first time. The API called for registering contains the userid field as querystring. Any ideas of making it populate that field.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
11/28/13 02:05 PM (11 years ago)
Hi, Did you have a look at the Push settings and the "Register URL" settings in the core properties of the app? Shopuld look like this <a href="http://yoursites.com/api/app/?command=registerForPush&appGuid=EAA7DBFE8798XXXXXXX&apiKey=0890880XXXXXX66654AA3&apiSecret=CD6E7XXXXXXX00E3BD&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&userId=[userId]" target="_blank" rel="nofollow">http://yoursites.com/api/app/?command=registerForPush&appGuid=EAA678XXXXXX747&apiKey=08DXXXXXXXXXX6AA3&apiSecret=CD6E9XXXXXX8D&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&userId=[userId]</a> Notice the values that can be included in the url ... [userid] Hope this helps. Cheers Darrel
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.