Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Weird behavior for App when enabling notifications
Started by kakula Jul 14 2019 02:30 PM

1 reply to this topic
notifications app hangs firebase
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

kakula

[GLOBAL: userInfoPane.html]
kakula
  • Enthusiast

  • 91 posts
  • Corona SDK

Hi

 

I'm having a very weird problem

 

to explain it simply i will describe what is happening in points:

 

  • i have created several apps that send notifications using Firebase and all of them are working perfectly
  • i created a new app, did the usual which is defining Firebase settings and adding the json file to the root folder, and modifying config.lua file etc...
  • when i build the app and run it on a samsung device it runs smoothly (did not yet check if notifications are working or not ... just run the app and browse all pages of the app)
  • when i run the same apk on a lenovo device (Lenovo K8 Note)  (newer than the samsung device) the app launches and disappears and if i click on the button that shows all open apps on the phone it is there! and when i click it ... it disappears again as if it does not go beyond main.lua ... but it does not hang with a blank screen ... just disappears
  • when i go to config file and omit those lines it works perfectly on Lenovo
notification =
	{
		google =
		{
			-- This Project Number (also known as a Sender ID) tells Corona to register this application
			-- for push notifications with the Google Cloud Messaging service on startup.
			-- This number can be obtained from the Google API Console at:  https://code.google.com/apis/console
			projectNumber = "61904104906",
		},

	},

so what is happening guys ... i'm stuck

 



[TOPIC: post.html]
#2

kakula

[GLOBAL: userInfoPane.html]
kakula
  • Enthusiast

  • 91 posts
  • Corona SDK

problem solved!

 

 

build.settings was missing some permissions that's it! :-)

 

but the behavior was weird though ... it didn't warn me about anything...




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: notifications, app hangs, firebase