How can I register the device id for push notifications

17 views
Skip to first unread message

cgsneem...@gmail.com

unread,
Nov 18, 2016, 12:52:18 PM11/18/16
to CodenameOne Discussions
II have dealt with the following lines, but I do not get the registry of the devide, I am working with netbeans

Hashtable meta = new Hashtable();
                meta.put(com.codename1.push.Push.GOOGLE_PUSH_KEY, GCM_SENDER_ID);        
                Display.getInstance().registerPush(meta, true);

Shai Almog

unread,
Nov 19, 2016, 12:51:14 AM11/19/16
to CodenameOne Discussions, cgsneem...@gmail.com
In which device type are you having a problem?
Notice that push doesn't really work in the simulator.

Did you implement PushCallback in your main class?
Are any of the push callback methods invoked?
Reply all
Reply to author
Forward
0 new messages