HockeyApp Update App not working

Hi all,

Not sure if I should post this here on over on the hockyapp website.

My hockey app returns an error when I tell it to update my game (after I push out an update to testers).  I get the first screen telling me there is an update, and then when I tell it to get the update (sorry not sure about exact terminology as I have performed a manual update since) I get an error.

Hockey App is now reporting the following crash report.

net.hockeyapp.android.tasks.CheckUpdateTaskWithUI.startUpdateIntent

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.appName/net.hockeyapp.android.UpdateActivity}; have you declared this activity in your AndroidManifest.xml?

 

Should I submit a bug report, or am I missing something?

 

Corona SDK version : 2886 (daily build)

Device: Samsung S7

Android Version: 6.0.1

Computer:  Mac

 

Cheers,

 

Craig

Here is the raw log if it helps.

Package: com.appName
Version Code: 1
Version Name: 1.0
Android: 6.0.1
Manufacturer: samsung
Model: SM-G930F
CrashReporter Key: fsd
Date: Sun May 29 20:31:23 GMT+12:00 2016

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.appName/net.hockeyapp.android.UpdateActivity}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1854)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1545)
    at android.app.Activity.startActivityForResult(Activity.java:4283)
    at android.app.Activity.startActivityForResult(Activity.java:4230)
    at android.app.Activity.startActivity(Activity.java:4567)
    at android.app.Activity.startActivity(Activity.java:4535)
    at net.hockeyapp.android.tasks.CheckUpdateTaskWithUI.startUpdateIntent(CheckUpdateTaskWithUI.java:196)
    at net.hockeyapp.android.tasks.CheckUpdateTaskWithUI.access$200(CheckUpdateTaskWithUI.java:63)
    at net.hockeyapp.android.tasks.CheckUpdateTaskWithUI$2.onClick(CheckUpdateTaskWithUI.java:135)
    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:173)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7229)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Cheers

If you could submit a bug report that would be great!

Done…

Case# 46217

Cheers

Fixed.  Thanks guys

There is still a slight issue when you first install the app, if it asks for permission and checks for updates in the same file.  I moved the checkForUpdates to my level select scene and it works perfectly.

Here is their response if anyone wants more info…


Hi,

Looking at your code you have these two calls next to each other :

hockeyApp.init(“key”)
hockeyApp.checkForUpdate()

We ask for permissions in the init method and checkForUpdate uses those permissions. So the pop up for permissions comes up and before the user accepts this the next method is called and it tries to use the permission. Since the permission is not granted yet the app crashes.

We will be solving this, but as a workaround you can keep the init call in one scene and checkForUpdate in another scene so that when the app call checkForUpdate method the permission dialog is already accepted.
 


Cheers,

And once again - Awesome

Here is the raw log if it helps.

Package: com.appName
Version Code: 1
Version Name: 1.0
Android: 6.0.1
Manufacturer: samsung
Model: SM-G930F
CrashReporter Key: fsd
Date: Sun May 29 20:31:23 GMT+12:00 2016

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.appName/net.hockeyapp.android.UpdateActivity}; have you declared this activity in your AndroidManifest.xml?
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1854)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1545)
    at android.app.Activity.startActivityForResult(Activity.java:4283)
    at android.app.Activity.startActivityForResult(Activity.java:4230)
    at android.app.Activity.startActivity(Activity.java:4567)
    at android.app.Activity.startActivity(Activity.java:4535)
    at net.hockeyapp.android.tasks.CheckUpdateTaskWithUI.startUpdateIntent(CheckUpdateTaskWithUI.java:196)
    at net.hockeyapp.android.tasks.CheckUpdateTaskWithUI.access$200(CheckUpdateTaskWithUI.java:63)
    at net.hockeyapp.android.tasks.CheckUpdateTaskWithUI$2.onClick(CheckUpdateTaskWithUI.java:135)
    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:173)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:158)
    at android.app.ActivityThread.main(ActivityThread.java:7229)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Cheers

If you could submit a bug report that would be great!

Done…

Case# 46217

Cheers

Fixed.  Thanks guys

There is still a slight issue when you first install the app, if it asks for permission and checks for updates in the same file.  I moved the checkForUpdates to my level select scene and it works perfectly.

Here is their response if anyone wants more info…


Hi,

Looking at your code you have these two calls next to each other :

hockeyApp.init(“key”)
hockeyApp.checkForUpdate()

We ask for permissions in the init method and checkForUpdate uses those permissions. So the pop up for permissions comes up and before the user accepts this the next method is called and it tries to use the permission. Since the permission is not granted yet the app crashes.

We will be solving this, but as a workaround you can keep the init call in one scene and checkForUpdate in another scene so that when the app call checkForUpdate method the permission dialog is already accepted.
 


Cheers,

And once again - Awesome