Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

firebaseinvites runtime event not firing
Started by balloonknot Sep 04 2017 10:19 AM

52 replies to this topic
[TOPIC CONTROLS]
Page 1 of 3 1 2 3
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

I've tried a few different approaches and I can't get this event to fire.

 

My high-level process....

 

  1. User clicks the share button in my app
  2. User picks from one or more of their contacts
  3. Invitations are sent
  4. Invitation ID's are stored in my database
  5. The invitee installs the app using the link to the app store (currently a beta release and the invitee is an approved tester)
  6. The new user opens the app.
  7. This is when I would expect the event below to be triggered. Not alert is shown and adb shows no relevant output.
-- FIREBASE INVITES
firebaseInvites = require ( "plugin.firebaseInvites" )
firebaseInvites.init()

------------------------------------
-- FIREBASE INVITES EVENT
------------------------------------
Runtime:addEventListener( "firebaseInvites", function (e)
    print( "FIREBASE INVITES EVENT FIRED" )
    native.showAlert("Response", glo.DeepPrintString(e), {"ok"})

    local i = e.invitationId

    if(i ~= nil and i ~= "") then
      local url = "http://54.213.63.96/api/UserFriendInvitation?fbInvitationId=" .. i .. "&newUserId=" .. glo.userId
      print( url )
      network.request( url, "GET", handleInviteAcceptResponse )
    end
end )



[TOPIC: post.html]
#2

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

I had the thought that maybe the UI wasn't available, so I put the event string in a glo variable to display on the registration screen:create. Additionally I tried sending it to my web api to store in SQL.  From what I can surmise, it just never gets fired.

------------------------------------
-- FIREBASE INVITES EVENT
------------------------------------
local function onFirebaseInvites( event )
    glo.debugStr = glo.DeepPrintString(event)
    local url = "http://54.###.##.##/api/Debug?text=" .. glo.DeepPrintString(event)
    network.request( url, "GET", nil )
end

Runtime:addEventListener( "firebaseInvites", onFirebaseInvites )



[TOPIC: post.html]
#3

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

I am looking into it.

[TOPIC: post.html]
#4

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Ok got it working. Please check out the new sample and docs.

https://github.com/scottrules44/firebaseInvites-demo

https://scotth.tech/plugin-firebaseInvites

 

Importantly you are missing these two pieces

Add this to your build.settings

 android= {
		useGoogleServicesJson = true,
		intentFilters = {
			{
				actions = { "android.intent.action.VIEW" },
				categories ={
					"android.intent.category.DEFAULT",
					"android.intent.category.BROWSABLE",
				},
				data = { scheme = "Insert deepLink name here for all this text, the deep link is the thrid field in function" },
			},
		},
	}, 

 and this

local launchArgs = ...
 
if launchArgs and launchArgs.url then
  print("Data From Launch")
  print("--------")
  print(json.encode(launchArgs))
  print("--------")
end
 
local function urlListener(event)
  if event.type == "applicationOpen" and event.url then
    print("Data From Open")
    print("--------")
    print(json.encode(event))
    print("--------")
  end
end
 
Runtime:addEventListener( "system", urlListener )


[TOPIC: post.html]
#5

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

Hey Scott,

  Thank you for all of this. I've implemented your changes and I'm still unable to get anything back from Google Play.  The first event fired is always applicationStart.  I'm able to capture the invite ID's when they are sent out, but they are either not included in the event after install or the applicationOpen event just isn't firing for some reason.

-----------------------------------
-- FIREBASE INVITES
------------------------------------
firebaseInvites = require ( "plugin.firebaseInvites" )
firebaseInvites.init()

-- Prints all launch arguments
local launchArguments = ...
if launchArgs and launchArgs.url then
  print("Data From Launch")
  print("--------")
  print(json.encode(launchArgs))
  print("--------")
end

------------------------------------
-- SYSTEM EVENTS LISTENER
------------------------------------
local function onSystemEvent( event )
    
    print("***************** EVENT ******************** " .. event.type)
    if event.type == "applicationOpen" then --  and event.url 
        glo.DeepPrint(event)
    end

    local url = "http://54.###.###.##/api/UserApplicationStatus/updateStatus?userEmail="

    if(event.type == "applicationStart") then
        network.request(url .. glo.userEmail .. "&isRunning=true", "GET", nil )
    end

    if(event.type == "applicationExit") then      
        network.request(url .. glo.userEmail .. "&isRunning=false", "GET", nil )
    end
end
  
Runtime:addEventListener( "system", onSystemEvent )



[TOPIC: post.html]
#6

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

 

Hey Scott,

  Thank you for all of this. I've implemented your changes and I'm still unable to get anything back from Google Play.  The first event fired is always applicationStart.  I'm able to capture the invite ID's when they are sent out, but they are either not included in the event after install or the applicationOpen event just isn't firing for some reason.

-----------------------------------
-- FIREBASE INVITES
------------------------------------
firebaseInvites = require ( "plugin.firebaseInvites" )
firebaseInvites.init()

-- Prints all launch arguments
local launchArguments = ...
if launchArgs and launchArgs.url then
  print("Data From Launch")
  print("--------")
  print(json.encode(launchArgs))
  print("--------")
end

------------------------------------
-- SYSTEM EVENTS LISTENER
------------------------------------
local function onSystemEvent( event )
    
    print("***************** EVENT ******************** " .. event.type)
    if event.type == "applicationOpen" then --  and event.url 
        glo.DeepPrint(event)
    end

    local url = "http://54.###.###.##/api/UserApplicationStatus/updateStatus?userEmail="

    if(event.type == "applicationStart") then
        network.request(url .. glo.userEmail .. "&isRunning=true", "GET", nil )
    end

    if(event.type == "applicationExit") then      
        network.request(url .. glo.userEmail .. "&isRunning=false", "GET", nil )
    end
end
  
Runtime:addEventListener( "system", onSystemEvent )

Can you post a sample project?



[TOPIC: post.html]
#7

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

Here's a small project demonstrating what I'm doing. I haven't added it to Firebase or anything

 

http://demo.sirentec.net/Tester.zip

 

In my actual project, the only time I've been able to see the "applicationOpen" event fire is when returning from a Facebook share and the app is in a warm state. It doesn't fire from a cold state coming from Facebook and it never fires coming from Google Play, regardless of the app state

 

Even when the event does fire coming from Facebook, it still doesn't contain any invitation information

 

action
android.intent.action.MAIN
extras
application_link_type
native
al_applink_data
target_url
fb127555964556252://
extras
fb_app_id
127555964556252
referer_app_link
package
com.facebook.katana
url
fb:///
app_name
Facebook
app_id
-269167652
unit_type
app_launch


[TOPIC: post.html]
#8

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

 

Here's a small project demonstrating what I'm doing. I haven't added it to Firebase or anything

 

http://demo.sirentec.net/Tester.zip

 

In my actual project, the only time I've been able to see the "applicationOpen" event fire is when returning from a Facebook share and the app is in a warm state. It doesn't fire from a cold state coming from Facebook and it never fires coming from Google Play, regardless of the app state

 

Even when the event does fire coming from Facebook, it still doesn't contain any invitation information

 

action
android.intent.action.MAIN
extras
application_link_type
native
al_applink_data
target_url
fb127555964556252://
extras
fb_app_id
127555964556252
referer_app_link
package
com.facebook.katana
url
fb:///
app_name
Facebook
app_id
-269167652
unit_type
app_launch

 

this part

firebaseInvites.show(message, title, nil

should be this

firebaseInvites.show(message, title, "Second Test"


[TOPIC: post.html]
#9

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

Sorry, it is that way in my actual app.  I just sent a zip file with [most of] the actual app to support@coronalabs.com


function loadShareScreen(shareWith)
    if (shareWith == "Contacts") then
        local message =  "Custom message"
        local title = "Custom Title"
        local deepLink = "Second Test"
        local callToActionText = "Click Here to Get It"
        customImage = "http://54.213.63.96/AppIcon_600_600.png"
        firebaseInvites.show(message, title, deepLink, callToActionText, customImage, function ( ev )
            if (ev.isError == true) then
                -- print("********FIREBASE ERROR********")  
                -- glo.DeepPrint(ev)
            else
                -- print("********FIREBASE********")       
                -- glo.DeepPrint(ev)           
                local ids = ""      
                for key, value in pairs(ev.invitationIds) do
                    ids = ids .. "," .. value
                end

                RecordInvitations(ids)   
            end
        end)
    end

    if (shareWith == "Facebook") then
        facebook.login( facebookListener )
    end
end


[TOPIC: post.html]
#10

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Are you using a debug keystore in your release project on firebase console?  



[TOPIC: post.html]
#11

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

That could potentially be an issue. I've used the same Firebase app throughout development and now in production. The only thing I've changed is the SHA fingerprints.  I'm currently using a release keystore both locally and, of course, in my Google Play production release.  If you mean the fingerprints, then yes, they came from the release keystore. 

 

Otherwise, how do I determine the keystore being used in Firebase?



[TOPIC: post.html]
#12

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Can try this code to see if it does anything? I have tested via google play, will try that later

Runtime:addEventListener("firebaseInvites", function()
  print("test123")
end)


[TOPIC: post.html]
#13

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

I doesn't do anything.  I do see this in adb, not sure if it's related.

 

CoronaRuntimeTaskDispatcher.send() doesn't have an available CoronaRuntime to run this task on! Abort!



[TOPIC: post.html]
#14

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Try rebuilding now.



[TOPIC: post.html]
#15

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

I'm still not seeing anything. Warm or cold. 

 

I started digging deeper into the dynamic links in FB and either they don't appear to be working correctly, or I am just ignorant.

 

If I Preview (Debug) the dynamic link from Firebase, it looks like this...

 

https://p43a9.app.goo.gl/?link=http%3A%2F%2F54.213.63.96%2Fapi%2Fuserfriendinvitation&apn=com.balloonknotgames.fartcommander&d=1

 

If I create a new invite and paste the short link into my browser, it resolves to this....

 

https://play.google.com/store/apps/details?id=com.balloonknotgames.fartcommander&pcampaignid=appinvite_&referrer=invitation_id%3D377426389920-6baa9726-6113-44d3-83d7-ddd3183e8aaa

 

It seems to me that the "link" parameter should also be included in the invite link. Unless they are doing something on the backend to fetch and forward to the app?

 

Then if I go into the Link Preview (Debug) flowchart and click on the "Play Store" links under Have Play Services < 1.1.15 I get this....

 

https://play.google.com/store/apps/details?id=com.balloonknotgames.fartcommander&pcampaignid=fdl_long&url=http://54.213.63.96/api/userfriendinvitation

 

So now it has a url parameter that I would expect to see, since we are trying to work with event.url



[TOPIC: post.html]
#16

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

I have been reading, looks like you have to use a domain. Let do some research. 

The intent filter should catch deep links of your domain, since the Dynamic Link will redirect to your domain if your app is installed. This is required for your app to receive the Dynamic Link data after it is installed from the Play Store.


[TOPIC: post.html]
#17

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Try demo

https://www.dropbox.com/s/5om03zyrgcqb44i/Tester.zip?dl=0



[TOPIC: post.html]
#18

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

Thanks. I tried that earlier today, but I used an IP address instead of a domain. I can't transfer my DNS record yet because it's not old enough.  I'll try a different domain for the time being.



[TOPIC: post.html]
#19

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

Still not seeing the url come back.  It could be me.  Do you know if a subdomain will work? dev.mydomain.com



[TOPIC: post.html]
#20

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

try the updated demo

https://www.dropbox.com/s/5om03zyrgcqb44i/Tester.zip?dl=0

and send any output



[TOPIC: post.html]
#21

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

We're getting there...

 

Short Link = https://p43a9.app.goo.gl/i/jGw_d

 

Long Link = https://play.google.com/store/apps/details?id=com.balloonknotgames.fartcommander&pcampaignid=appinvite_&referrer=deep_link_id%3Dhttps://balloonknotgames.com/appInvite%26invitation_id%3D377426389920-c5d4b553-e5eb-4819-adc4-f347e417c25c

 

logcat

09-18 10:20:05.624 12843 13024 I Corona  : ### --- Launch Arguments ---

09-18 10:20:05.625 12843 13024 I Corona  : *** system event type = applicationStart
09-18 10:20:05.724 12843 13024 V Corona  : > Class.forName: CoronaProvider.licensing.google.LuaLoader
09-18 10:20:05.724 12843 13024 V Corona  : < Class.forName: CoronaProvider.licensing.google.LuaLoader
09-18 10:20:05.726 12843 13024 V Corona  : Loading via reflection: CoronaProvider.licensing.google.LuaLoader
09-18 10:20:05.758 12843 13024 I Corona  : Facebook initialized
 

 

function loadShareScreen(shareWith)
if (shareWith == "Contacts") then
local message = "Fart Commander lets you make other peoples devices fart!"
local title = "Soilders Needed!"
local deepLink = "https://balloonknotgames.com/appInvite"
local callToActionText = "Click Here to Get It"
customImage = "http://54.213.63.96/AppIcon_600_600.png"
firebaseInvites.show(message, title, deepLink, callToActionText, customImage, function ( ev )
if (ev.isError == true) then
-- print("********FIREBASE ERROR********") 
-- glo.DeepPrint(ev)
else
-- print("********FIREBASE********") 
-- glo.DeepPrint(ev) 
local ids = ""
for key, value in pairs(ev.invitationIds) do
ids = ids .. "," .. value
end
RecordInvitations(ids)
end
end)
end
if (shareWith == "Facebook") then
facebook.login( facebookListener )
end
end

 

local launchArgs = ...
print("### --- Launch Arguments ---")
printTable(launchArgs)
local function onSystemEvent(event)
print("*** system event type = " .. event.type)
if (event.type == "applicationOpen") then
print("### --- Application Open ---")
printTable(event)
end
--printTable(event)
end
Runtime:addEventListener("firebaseInvites", function(event)
print("### --- Firebase Invites ---")
printTable(event)
end)
Runtime:addEventListener("system", onSystemEvent)

 

 

 intentFilters = {
{
actions = { "android.intent.action.VIEW" },
categories ={
"android.intent.category.DEFAULT",
"android.intent.category.BROWSABLE",
},
data = {{ scheme = "http", host = "balloonknotgames.com" },
                { scheme = "https", host = "balloonknotgames.com" }}
},
},


[TOPIC: post.html]
#22

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Is there any thing else in the logs?

[TOPIC: post.html]
#23

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

Here's the entire log.  Cold start, coming from the Play Store

 

adb logcat Corona:v *:s

 

--------- beginning of main
--------- beginning of system
09-18 10:53:30.511  7147  7429 V Corona  : > Class.forName: network.LuaLoader
09-18 10:53:30.512  7147  7429 V Corona  : < Class.forName: network.LuaLoader
09-18 10:53:30.512  7147  7429 V Corona  : Loading via reflection: network.LuaLoader
09-18 10:53:30.527  7147  7429 I Corona  : Platform: SM-G920T / ARM Neon / 7.0 / Mali-T760 / OpenGL ES 3.2 v1.r15p0-00rel0.68b65ac7cf15907aeb95fa944f39eef2 / 2017.3135 / English | US | en_US | en
09-18 10:53:30.540  7147  7429 V Corona  : > Class.forName: shared.google.play.services.base.LuaLoader
09-18 10:53:30.542  7147  7429 V Corona  : < Class.forName: shared.google.play.services.base.LuaLoader
09-18 10:53:30.542  7147  7429 V Corona  : Loading via reflection: shared.google.play.services.base.LuaLoader
09-18 10:53:30.562  7147  7429 V Corona  : > Class.forName: _CoronaSetup.LuaLoader
09-18 10:53:30.565  7147  7429 V Corona  : > Class.forName: plugin.liveBuild.LuaLoader
09-18 10:53:30.565  7147  7429 V Corona  : < Class.forName: plugin.liveBuild.LuaLoader
09-18 10:53:30.566  7147  7429 V Corona  : Loading via reflection: plugin.liveBuild.LuaLoader
09-18 10:53:30.576  7147  7429 V Corona  : > Class.forName: plugin.facebook.v4a.LuaLoader
09-18 10:53:30.576  7147  7429 V Corona  : < Class.forName: plugin.facebook.v4a.LuaLoader
09-18 10:53:30.576  7147  7429 V Corona  : Loading via reflection: plugin.facebook.v4a.LuaLoader
09-18 10:53:30.584  7147  7429 V Corona  : > Class.forName: plugin.appodeal.LuaLoader
09-18 10:53:30.584  7147  7429 V Corona  : < Class.forName: plugin.appodeal.LuaLoader
09-18 10:53:30.584  7147  7429 V Corona  : Loading via reflection: plugin.appodeal.LuaLoader
09-18 10:53:30.589  7147  7429 V Corona  : > Class.forName: plugin.firebaseAuth.LuaLoader
09-18 10:53:30.589  7147  7429 V Corona  : < Class.forName: plugin.firebaseAuth.LuaLoader
09-18 10:53:30.590  7147  7429 V Corona  : Loading via reflection: plugin.firebaseAuth.LuaLoader
09-18 10:53:30.597  7147  7429 V Corona  : > Class.forName: plugin.volumeControl.LuaLoader
09-18 10:53:30.597  7147  7429 V Corona  : < Class.forName: plugin.volumeControl.LuaLoader
09-18 10:53:30.597  7147  7429 V Corona  : Loading via reflection: plugin.volumeControl.LuaLoader
09-18 10:53:30.598  7147  7429 V Corona  : > Class.forName: plugin.bassBoost.LuaLoader
09-18 10:53:30.598  7147  7429 V Corona  : < Class.forName: plugin.bassBoost.LuaLoader
09-18 10:53:30.598  7147  7429 V Corona  : Loading via reflection: plugin.bassBoost.LuaLoader
09-18 10:53:30.621  7147  7429 V Corona  : > Class.forName: plugin.firebaseInvites.LuaLoader
09-18 10:53:30.621  7147  7429 V Corona  : < Class.forName: plugin.firebaseInvites.LuaLoader
09-18 10:53:30.621  7147  7429 V Corona  : Loading via reflection: plugin.firebaseInvites.LuaLoader
09-18 10:53:30.693  7147  7429 V Corona  : > Class.forName: OneSignal.LuaLoader
09-18 10:53:30.693  7147  7429 V Corona  : < Class.forName: OneSignal.LuaLoader
09-18 10:53:30.693  7147  7429 V Corona  : Loading via reflection: OneSignal.LuaLoader
09-18 10:53:30.694  7147  7429 I Corona  : Starting Corona OneSignal SDK v1.13.3
09-18 10:53:30.744  7147  7429 I Corona  : plugin.appodeal: 1.3.3 (SDK: 2.1.3)
09-18 10:53:30.788  7147  7429 I Corona  : ### --- Launch Arguments ---
09-18 10:53:30.790  7147  7429 I Corona  : *** system event type = applicationStart
09-18 10:53:30.790  7147  7429 I Corona  : ### name: system
09-18 10:53:30.790  7147  7429 I Corona  : ### type: applicationStart
09-18 10:53:30.876  7147  7429 V Corona  : > Class.forName: CoronaProvider.licensing.google.LuaLoader
09-18 10:53:30.876  7147  7429 V Corona  : < Class.forName: CoronaProvider.licensing.google.LuaLoader
09-18 10:53:30.878  7147  7429 V Corona  : Loading via reflection: CoronaProvider.licensing.google.LuaLoader
09-18 10:53:30.913  7147  7429 I Corona  : Facebook initialized


[TOPIC: post.html]
#24

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,803 posts
  • Enterprise

Make this
data = {{ scheme = "http", host = "balloonknotgames.com" },
{ scheme = "https", host = "balloonknotgames.com" }}
This
data = {scheme = "https", host = "balloonknotgames.com" }

[TOPIC: post.html]
#25

balloonknot

[GLOBAL: userInfoPane.html]
balloonknot
  • Contributor

  • 100 posts
  • Corona SDK

No difference.

 

C:\Users\clint\AppData\Local\Android\sdk\platform-tools>adb logcat Corona:v *:s
--------- beginning of main
--------- beginning of system
09-19 07:20:06.115  6570  7015 V Corona  : > Class.forName: network.LuaLoader
09-19 07:20:06.115  6570  7015 V Corona  : < Class.forName: network.LuaLoader
09-19 07:20:06.115  6570  7015 V Corona  : Loading via reflection: network.LuaLoader
09-19 07:20:06.130  6570  7015 I Corona  : Platform: SM-G920T / ARM Neon / 7.0 / Mali-T760 / OpenGL ES 3.2 v1.r15p0-00rel0.68b65ac7cf15907aeb95fa944f39eef2 / 2017.3135 / English | US | en_US | en
09-19 07:20:06.198  6570  7015 V Corona  : > Class.forName: shared.google.play.services.base.LuaLoader
09-19 07:20:06.198  6570  7015 V Corona  : < Class.forName: shared.google.play.services.base.LuaLoader
09-19 07:20:06.199  6570  7015 V Corona  : Loading via reflection: shared.google.play.services.base.LuaLoader
09-19 07:20:06.220  6570  7015 V Corona  : > Class.forName: _CoronaSetup.LuaLoader
09-19 07:20:06.223  6570  7015 V Corona  : > Class.forName: plugin.liveBuild.LuaLoader
09-19 07:20:06.223  6570  7015 V Corona  : < Class.forName: plugin.liveBuild.LuaLoader
09-19 07:20:06.223  6570  7015 V Corona  : Loading via reflection: plugin.liveBuild.LuaLoader
09-19 07:20:06.295  6570  7015 V Corona  : > Class.forName: plugin.facebook.v4a.LuaLoader
09-19 07:20:06.296  6570  7015 V Corona  : < Class.forName: plugin.facebook.v4a.LuaLoader
09-19 07:20:06.296  6570  7015 V Corona  : Loading via reflection: plugin.facebook.v4a.LuaLoader
09-19 07:20:06.303  6570  7015 V Corona  : > Class.forName: plugin.appodeal.LuaLoader
09-19 07:20:06.304  6570  7015 V Corona  : < Class.forName: plugin.appodeal.LuaLoader
09-19 07:20:06.304  6570  7015 V Corona  : Loading via reflection: plugin.appodeal.LuaLoader
09-19 07:20:06.309  6570  7015 V Corona  : > Class.forName: plugin.firebaseAuth.LuaLoader
09-19 07:20:06.309  6570  7015 V Corona  : < Class.forName: plugin.firebaseAuth.LuaLoader
09-19 07:20:06.309  6570  7015 V Corona  : Loading via reflection: plugin.firebaseAuth.LuaLoader
09-19 07:20:06.317  6570  7015 V Corona  : > Class.forName: plugin.volumeControl.LuaLoader
09-19 07:20:06.317  6570  7015 V Corona  : < Class.forName: plugin.volumeControl.LuaLoader
09-19 07:20:06.317  6570  7015 V Corona  : Loading via reflection: plugin.volumeControl.LuaLoader
09-19 07:20:06.318  6570  7015 V Corona  : > Class.forName: plugin.bassBoost.LuaLoader
09-19 07:20:06.318  6570  7015 V Corona  : < Class.forName: plugin.bassBoost.LuaLoader
09-19 07:20:06.318  6570  7015 V Corona  : Loading via reflection: plugin.bassBoost.LuaLoader
09-19 07:20:06.348  6570  7015 V Corona  : > Class.forName: plugin.firebaseInvites.LuaLoader
09-19 07:20:06.348  6570  7015 V Corona  : < Class.forName: plugin.firebaseInvites.LuaLoader
09-19 07:20:06.348  6570  7015 V Corona  : Loading via reflection: plugin.firebaseInvites.LuaLoader
09-19 07:20:06.349  6570  7015 I Corona  : ### --- Launch Arguments ---
09-19 07:20:06.349  6570  7015 I Corona  : nil
09-19 07:20:06.371  6570  7015 V Corona  : > Class.forName: OneSignal.LuaLoader
09-19 07:20:06.371  6570  7015 V Corona  : < Class.forName: OneSignal.LuaLoader
09-19 07:20:06.371  6570  7015 V Corona  : Loading via reflection: OneSignal.LuaLoader
09-19 07:20:06.372  6570  7015 I Corona  : Starting Corona OneSignal SDK v1.13.3
09-19 07:20:06.456  6570  7015 I Corona  : plugin.appodeal: 1.3.3 (SDK: 2.1.3)
09-19 07:20:06.513  6570  7015 I Corona  : ***************** EVENT ******************** applicationStart
09-19 07:20:06.513  6570  7015 I Corona  : name
09-19 07:20:06.513  6570  7015 I Corona  : system
09-19 07:20:06.513  6570  7015 I Corona  : type
09-19 07:20:06.513  6570  7015 I Corona  : applicationStart
09-19 07:20:06.699  6570  7015 V Corona  : > Class.forName: CoronaProvider.licensing.google.LuaLoader
09-19 07:20:06.699  6570  7015 V Corona  : < Class.forName: CoronaProvider.licensing.google.LuaLoader
09-19 07:20:06.703  6570  7015 V Corona  : Loading via reflection: CoronaProvider.licensing.google.LuaLoader
09-19 07:20:06.777  6570  7015 I Corona  : Facebook initialized

 

From....

 


local launchArgs = ...
print("### --- Launch Arguments ---")
glo.DeepPrint(launchArgs)
Runtime:addEventListener("firebaseInvites", function(event)
print("### --- Firebase Invites ---")
glo.DeepPrint(event)
end)
------------------------------------
-- SYSTEM EVENTS LISTENER
------------------------------------
local function onSystemEvent( event )
 
print("***************** EVENT ******************** " .. event.type)
if (event.url) then
print("URL " .. event.url)
end
glo.DeepPrint(event)
if event.type == "applicationOpen" then -- and event.url 
-- glo.DeepPrint(event)
end
local url = glo.baseUrl .. "UserApplicationStatus/updateStatus?userEmail="
if(event.type == "applicationStart") then
-- glo.DeepPrint(event)
network.request(url .. glo.userEmail .. "&isRunning=true", "GET", nil )
end
if(event.type == "applicationExit") then
network.request(url .. glo.userEmail .. "&isRunning=false", "GET", nil )
end
end
 
Runtime:addEventListener( "system", onSystemEvent )

 

  intentFilters = {
{
actions = { "android.intent.action.VIEW" },
categories ={
"android.intent.category.DEFAULT",
"android.intent.category.BROWSABLE",
},
data = {scheme = "https", host = "balloonknotgames.com" }
},
},



[topic_controls]
Page 1 of 3 1 2 3
 
[/topic_controls]