Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Push Notifications from Workflows Crash Android #27

Open
2 tasks
tikool17 opened this issue Mar 15, 2024 · 0 comments
Open
2 tasks

[Issue]: Push Notifications from Workflows Crash Android #27

tikool17 opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working unverified This issue has not been verified yet

Comments

@tikool17
Copy link

Describe the Issue in Detail

We use a job and workflow to send daily push notifications to new devotions within our app. On Android, if you tap this push notification with the app closed, the app doesn't open but crashes. If the app was already open in the background or foreground, the app opens correctly.

In testing, we also tested a stripped down the workflow to the simplest version and the issue still presents (just one workflow action with simple text in the title/message fields with no punctuation, tested url vs. no url, etc).

We had noticed a pretty large amount of repeating crashes daily on our Google Pay dev console, but only recently connected that this is most probably the cause since we send these notifications daily in the morning. I'll include some of those crash details below if that's helpful:

Stack Trace:

Exception android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
  at Rock.Mobile.Droid.Widgets.RootContentLayout..ctor  (Android.Content.Context context, Android.Views.View contentView)
Screenshot 2024-03-15 at 9 48 24 AM

*Not able to test in blue or orange app because I don't think pushes work there...

Can reproduce in

  • Orange App
  • Blue App

Steps to Reproduce

-from a workflow, send a push notification via the Push Notification Send action.
-tap on the notification in Android.
-if the app is NOT open in the background/foreground on android, the app will crash and not open.
-if the app IS already open in the foreground/background on android, it opens the app or directs you to the specified page within the app correctly.
-Push notifications sent from the New Communication block work fine. This issue only seems to present from workflows.
-iOS works fine. Doesn't have this issue.

Expected Behavior

Push notification should open to the specified page within the app on android

Actual Behavior

Tapping on the push notification crashes the app on android.

Screenshots or Videos

Workflow
screenshot-staff freechapel org-2024 03 15-10_38_56

Crash
https://github.com/SparkDevNetwork/Rock.Mobile-Issues/assets/32227063/427d4581-61a3-4f1b-9ea4-81b078bd18fb

Reproduction XAML

No response

Mobile Shell Version

1.6.0.4

Last Known Working Version

N/A

iOS Device Type(s) and iOS Version(s)

none

Android Device Type(s) and Android Version(s)

All as far as i can tell. Android 9-13. Samsung, Google, Motorola, etc devices

@tikool17 tikool17 added bug Something isn't working unverified This issue has not been verified yet labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified This issue has not been verified yet
Projects
None yet
Development

No branches or pull requests

1 participant