Hi, That's a video from 2014 and a lot has changed since then. Please follow the push instructions in the developer guide which are more up to date: https://www.codenameone.com/developer-guide.html
The push process was changed by Google/Apple several times over the past 7 years. On Thursday, May 13, 2021 at 3:32:33 AM UTC+3 [email protected] wrote: > Hey guys I was trying this tutorial you made about displaying pop up > notification, when I run the program nothing happens. It just doesn't > display the notification, I kinda didn't know what to exactly put int the > parameters can anybody help me by any chance? I need to resolve this in few > days. > > https://www.youtube.com/watch?v=G6zy2hzhr_Y > > MyApplication.java implements PushCallback > -------------------------------------------------------------- > public void start() { > if(current != null){ > current.show(); > return; > } > Hashtable meta = new Hashtable(); > meta.put(com.codename1.push. Push. GOOGLE_PUSH_KEY, "1234"); > Display.getInstance().registerPush(meta, true); > > Form hi = new Form("Hi World", BoxLayout.y()); > hi.add(new Label("Hi World")); > Button send= new Button("send"); > send.addActionListener(new ActionListener() { > > public void actionPerformed(ActionEvent evt){ > Push.sendPushMessage("Message", null, false, SOUTH, > NATIVE_ITALIC_THIN, NATIVE_ITALIC_BOLD); > } > > }); > hi.show(); > } > > Best regards. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/cef6fe48-a23b-4e9b-80c1-60c36bbcbcb9n%40googlegroups.com.
