Skip to main content
Known Participant
July 31, 2016
Answered

Problem in with big project with ANE in Air 22 (Air 21 works) on Android Devices

  • July 31, 2016
  • 1 reply
  • 1351 views

Hi together,

after posting my problem in the Flex User Forum I got the advice to post it another forum -> f.e. Andorid but I think this one fits more.

We have a huge mobile project using the Easy Push Native Extension from Milkman Games to send notifications.

Our IDE is Intellij Idea.

Using the Air 22 SDK in our project the app crashes when we use call the ANEs method to set up all the notification stuff (ane is supported...).

When we switch to Air 21 everything is fine.

When we build a small test project using AIR 22 and the ANE everything works fine.

Does anyone have an idea where the problem could be located?

The Log looks like this:

...

07-28 14:29:35.290    5976-5976/? I/air.com.company.project﹕ 7/28/2016 14:29:35.295 [INFO] com.company.project.model.proxies.EasyPushProxy Init OneSignal...

...

07-28 14:29:35.490    3047-3647/? I/ActivityManager﹕ filter receiver for action = com.google.android.c2dm.intent.REGISTRATION

07-28 14:29:35.500    3047-3072/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!!

07-28 14:29:35.540    3047-3153/? W/InputDispatcher﹕ channel 'f8820b7 air.com.company.project/air.com.company.project.AppEntry (server)' ~ Consumer closed input channel or an error occurred.  events=0x9

07-28 14:29:35.540    3047-3153/? E/InputDispatcher﹕ channel 'f8820b7 air.com.company.project/air.com.company.project.AppEntry (server)' ~ Channel is unrecoverably broken and will be disposed!

07-28 14:29:35.540    3047-3235/? W/InputDispatcher﹕ Attempted to unregister already unregistered input channel 'f8820b7 air.com.company.project/air.com.company.project.AppEntry (server)'

07-28 14:29:35.540    2345-2345/? I/Zygote﹕ Process 5976 exited due to signal (11)

07-28 14:29:35.610    3452-3721/? I/HwSystemManager﹕ HoldService:uid:10109 pid:5976 died

07-28 14:29:35.610    3452-3721/? I/HwSystemManager﹕ HoldService:oldVersionKey:10109,5976

07-28 14:29:35.610    3047-3066/? E/HsmCoreServiceImpl﹕ onTransact in code is: 102

07-28 14:29:35.610    3047-3066/? I/MediaProcessHandler﹕ processOp opType: 1, uid: 10109, pid: 5976

07-28 14:29:35.610    3047-3066/? W/MediaProcessHandler﹕ remove target not exist, maybe the UI process: uid: 10109, pid: 5976

07-28 14:29:35.610    3452-4333/? I/HwSystemManager﹕ BgPowerManagerService:onProcessDied uid = 10109

Can anyone help us with the problem?

This topic has been closed for replies.
Correct answer natural_criticB837

Hi,

we had a similar issue: Crash with Milkman Easypush in Air 22 on Android 5, only with our app, not with example app. We use our own server instead of OneSignal, so maybe it is a different problem (our LogCat looked different).

However the solution was that we were initializing EasyPush only after the player logged into our game. Refactoring the code so that Easypush is initialized in frame 1 of the application fixed the problem for us.

Let me know if that works for you.

Cheers

1 reply

Known Participant
August 1, 2016

Seems the AIR 23 Beta Version works with our project...

natural_criticB837
natural_criticB837Correct answer
Legend
August 1, 2016

Hi,

we had a similar issue: Crash with Milkman Easypush in Air 22 on Android 5, only with our app, not with example app. We use our own server instead of OneSignal, so maybe it is a different problem (our LogCat looked different).

However the solution was that we were initializing EasyPush only after the player logged into our game. Refactoring the code so that Easypush is initialized in frame 1 of the application fixed the problem for us.

Let me know if that works for you.

Cheers

Known Participant
August 1, 2016

Thanks!

Milkman also told us to try that... and we tried it on the initialize-Event of the Main Flex Class... that failed...

After a little search I tried it on the preinitialize-Event and that worked...

Is this a standard problem with ANEs that they should be initialized/used in the first frame or a special thing with that ANE in combination with AIR22?

Kind regards

Christian