Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Local Notifications
Started by SGS May 24 2019 04:34 AM

- - - - -
7 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,120 posts
  • Corona SDK

Currently it looks like the process for notifications is Corona.  Android 9 now allows inline removal of notification permissions in the actual notification.

 

Which could potentially lead to ALL app notifications by Corona apps being silenced.

 

notification.jpg



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 884 posts
  • Corona SDK

I've looked at setting up local notifications before and I've always wondered as to why the notifications need to state that they come from "corona" and not the actual app developer.



[TOPIC: post.html]
#3

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,053 posts
  • Enterprise

Thanks for the report. I've alerted engineering.



[TOPIC: post.html]
#4

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

Good point. Not that time ago Google/Android APIs started to require to tag notifications with the name. Corona's notifications APIs are not very flexible, so we just hardcoded some tag there. Before Android 9 tag was not displayed anywhere (at least we couldn't find where).

Here is code responsible.

Do you think it would be a good idea to have the Application name as default channel label, and later add a possibility to extend this behaviour?



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,053 posts
  • Enterprise

How about something generic like "Alert" or "Notification" for the tag?

 

Rob



[TOPIC: post.html]
#6

SGS

[GLOBAL: userInfoPane.html]
SGS
  • Corona Geek

  • 2,120 posts
  • Corona SDK

Maybe an extension to notification plugin so we can choose what we want displayed there?

      local options = { title = "alert title", alert = "I am a notification", badge = 1 }
      local time = 1000
      notifications.scheduleNotification( time, options )



[TOPIC: post.html]
#7

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

After trying out both variants App name looks much better. It looks weird for some generic word in the middle of everything in bold font.



[TOPIC: post.html]
#8

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

Please, try Corona 2019.3480, verify if issue was fixed




[topic_controls]
[/topic_controls]