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/286821c5-a8fa-4f93-a688-0c9a6378b2efn%40googlegroups.com.

Reply via email to