Skip to content

Android push notification beta crash + API issue #323

@mattheworiordan

Description

@mattheworiordan

Reported by customer Edgar:

I was checking Android push notification implementation and I can't seem to subscribe to a channel after receiving the callback from 'activate'. ablyRealtime.channels.get("").push
I tried the following: ablyRealtime.channels.get("channel_name").push -- Apparently push doesn't exist. I did as the installation instructions indicate.

Also, reported a crash:

Another issue is that after executing this: ablyRealtime.push.activate(context);
The app crashes and I get:
05-05 01:59:30.878 20620-20620/ee.app.conversamanager E/AndroidRuntime: FATAL EXCEPTION: main
Process: ee.app.conversamanager, PID: 20620
java.lang.NoClassDefFoundError: io.azam.ulidj.ULID
at io.ably.lib.rest.LocalDevice.load(LocalDevice.java:33)
at io.ably.lib.rest.AblyRest.device(AblyRest.java:21)
at io.ably.lib.rest.Push$ActivationStateMachine$NotActivated.transition(Push.java:147)
at io.ably.lib.rest.Push$ActivationStateMachine.handleEvent(Push.java:449)
at io.ably.lib.rest.Push.activate(Push.java:39)
at io.ably.lib.rest.Push.activate(Push.java:34)
at ee.app.conversamanager.management.AblyConnection.initAbly(AblyConnection.java:86)
at ee.app.conversamanager.ActivityMain.onCreate(ActivityMain.java:60)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working. It's clear that this does need to be fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions