How do you make a notification at the top portion of device?

Hello!

I’m trying to make an app for android. Unfortunately, it does not have a game center, so I’m making one out of Game Minion/Corona Cloud.

Everything is going smoothly, but unlocking an achievement does not have a notification like the iOS game center does.

Is there a way to make this?

Thanks for the help.

Regards,

John [import]uid: 186198 topic_id: 34171 reply_id: 334171[/import]

Hi John,
Do you mean, something that basically mimics the iOS notification bar, but on Android? I imagine you could just program this in Corona easily enough, using a display group with a message and background bar that “slides” from the top of the screen, using a transition, then slides back up after a few seconds.

Is this what you had in mind?

Brent
[import]uid: 200026 topic_id: 34171 reply_id: 135898[/import]

Yes, something like that.

But ore-reating a display group may prove to be a problem, as the info in the display group changes each time, right?

Regards,

John [import]uid: 186198 topic_id: 34171 reply_id: 135900[/import]

Hi John,
I assume you mean “pre-creating” not “ore-reating”? Probably you were typing on a phone/tablet. :slight_smile:

How is your app set up? Are you using Storyboard or Director? In either case, I think the contents of this pseudo-notification-bar should be minimal, yes? As in, a background, some text, maybe an image or two… so it could be created per-scene, and the text value simply changed using the “.text” command on that object. Maybe I’m not fully understanding what your goal is, however…

Brent
[import]uid: 200026 topic_id: 34171 reply_id: 135907[/import]

Hi Brent, thanks for the answer!

I’m using Storyboard for this. I was thinking that there might be some pre-made functions for it. I’ll make one out from scratch then.

Thanks for your help.:slight_smile:

Regards,

John [import]uid: 186198 topic_id: 34171 reply_id: 135911[/import]

Would this be a use for “Local Notifications”?
[import]uid: 199310 topic_id: 34171 reply_id: 135969[/import]

Hi John,
Do you mean, something that basically mimics the iOS notification bar, but on Android? I imagine you could just program this in Corona easily enough, using a display group with a message and background bar that “slides” from the top of the screen, using a transition, then slides back up after a few seconds.

Is this what you had in mind?

Brent
[import]uid: 200026 topic_id: 34171 reply_id: 135898[/import]

Yes, something like that.

But ore-reating a display group may prove to be a problem, as the info in the display group changes each time, right?

Regards,

John [import]uid: 186198 topic_id: 34171 reply_id: 135900[/import]

Hi John,
I assume you mean “pre-creating” not “ore-reating”? Probably you were typing on a phone/tablet. :slight_smile:

How is your app set up? Are you using Storyboard or Director? In either case, I think the contents of this pseudo-notification-bar should be minimal, yes? As in, a background, some text, maybe an image or two… so it could be created per-scene, and the text value simply changed using the “.text” command on that object. Maybe I’m not fully understanding what your goal is, however…

Brent
[import]uid: 200026 topic_id: 34171 reply_id: 135907[/import]

Hi Brent, thanks for the answer!

I’m using Storyboard for this. I was thinking that there might be some pre-made functions for it. I’ll make one out from scratch then.

Thanks for your help.:slight_smile:

Regards,

John [import]uid: 186198 topic_id: 34171 reply_id: 135911[/import]

Would this be a use for “Local Notifications”?
[import]uid: 199310 topic_id: 34171 reply_id: 135969[/import]