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

[Bug]: Unsupported value: 'OSNotification' #761

Open
3 tasks done
Toolenaar opened this issue Oct 7, 2023 · 2 comments
Open
3 tasks done

[Bug]: Unsupported value: 'OSNotification' #761

Toolenaar opened this issue Oct 7, 2023 · 2 comments

Comments

@Toolenaar
Copy link

Toolenaar commented Oct 7, 2023

What happened?

When trying to open the app from a grouped push message the app crashes, on both ios and android. The push is send from backend service using the node api. The crash happens when I set the thread_id and android_group. When I dont set these values the app opens correctly.

Steps to reproduce?

1. Send a push message setting the thread_id or android_group.
2. Open the app from this push message

What did you expect to happen?

The app opens and push messages are parsed correctly.

OneSignal Flutter SDK version

5.0.2

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

Unsupported value: 'OSNotification{notificationExtender=null, groupedNotifications=null, androidNotificationId=0, notificationId='24219fdc-eae3-4493-8794-6a2887cc88a1', templateName='null', templateId='null', title='Getalenteerde Kangoeroe', body='Ddrt', additionalData={"contentId":"K1VWMmcNujf6f1wxXsor","type":"new_message"}, smallIcon='null', largeIcon='null', bigPicture='null', smallIconAccentColor='null', launchURL='null', sound='nil', ledColor='null', lockScreenVisibility=0, groupKey='K1VWMmcNujf6f1wxXsor', groupMessage='null', actionButtons=null, fromProjectNumber='451391240989', backgroundImageLayout=null, collapseId='null', priority=4, rawPayload='{"google.delivered_priority":"normal","google.sent_time":1696667473935,"google.ttl":259200,"google.original_priority":"normal","custom":"{\"a\":{\"contentId\":\"K1VWMmcNujf6f1wxXsor\",\"type\":\"new_message\"},\"i\":\"24219fdc-eae3-4493-8794-6a2887cc88a1\"}","grp":"K1VWMmcNujf6f1wxXsor","pri":"4","vib":"0","vis":"0","chnl":"{\"dscr\":\"Bubbel chat\",\"grp_nm\":\"Bubble Chat\",\"grp_id\":\"OS_387f188a-cd33-46a2-8920-7301e860d649\",\"id\":\"OS_e33b2ac9-a9f0-4f2c-a0dc-364818c87ca9\",\"nm\":\"bubbel-chat\"}","from":"451391240989","alert":"Ddrt","sound":"nil","title":"Getalenteerde Kangoeroe","google.message_id":"0:1696667473941092%9349fde9f9fd7ecd","google.c.sender.id":"451391240989"}'}' of type 'class com.onesignal.notifications.internal.Notification'

Code of Conduct

  • I agree to follow this project's Code of Conduct
@emawby
Copy link
Contributor

emawby commented Oct 11, 2023

@Toolenaar Hello thank you for reporting, I am not able to reproduce this are you able to reproduce on 5.0.3? Does your app need to be in a particular state?

@nasrulgunawan
Copy link

nasrulgunawan commented Nov 10, 2023

I encountered the same issue. @emawby, here are the steps to reproduce it:

  1. Set android_group
  2. Push at least 2 notifications with the same group.
  3. Click on grouped notifications, and the mentioned error occurs.

OneSignal version: 5.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants