• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Explorer ,
Jul 31, 2016 Jul 31, 2016

Copy link to clipboard

Copied

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?

TOPICS
Development

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Aug 01, 2016 Aug 01, 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

Votes

Translate

Translate
Explorer ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

Hi Christian,

thanks for accepting the answer. I do not know if that is a standard problem, I only was able to fix the problem by trial and error, I have no background information why this is happening in Air 22.

I assume some specifics in regards with the Easypush Ane. The Easypush documentation also states that you should initialize the ANE in the first frame to make sure you collect all push notifications that exist before the app starts. So I assume some specific edge case with this ANE and Air 22.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 26, 2016 Aug 26, 2016

Copy link to clipboard

Copied

LATEST

At least it is not working on some Android Devices with AIR22 even when initialized on the first frame... Bad luck as AIR22 is required to work with Anroid 7.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines