Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Typeerror: cannot read property ‘userid’ of undefined onesignal
Started by shrutikat.eiosys Jun 12 2018 02:27 AM

1 reply to this topic
ionic3 onesignal userid undefined android sdk plugins
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

shrutikat.eiosys

[GLOBAL: userInfoPane.html]
shrutikat.eiosys
  • Observer

  • 1 posts
  • Corona SDK

Hello, i am getting error message of userId is undefined of onesignal in ionic 3 app where plugins are install properly and all parameter in OneSignal.init() method are right. then where is problem?
for getting user id i have used this._oneSignal.getIds().then((id) => { console.log(id.userId)}); but not working.



[TOPIC: post.html]
#2

nazneenshk30

[GLOBAL: userInfoPane.html]
nazneenshk30
  • Observer

  • 2 posts
  • Corona SDK

When OneSignal is initialized in your application, we provide methods and observers to retrieve the user's OneSignal Player ID. Use these to save the users' OneSignal Player ID to your server.

Each of our mobile SDKs has a GetPermissionSubscriptionState method and subscriptionObserver to get the Player ID, please see the Mobile SDK documentation for more information.

 
 


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: ionic3, onesignal, userid, undefined, android sdk, plugins