OneSignal-iOS-SDK icon indicating copy to clipboard operation
OneSignal-iOS-SDK copied to clipboard

Action buttons sometimes do not show up (on iOS 13.x)

Open rvanzon opened this issue 4 years ago • 20 comments

Description: Sometimes the action buttons do not show up on iOS, with exactly the same data and action buttons.

Environment

  1. What version of the iOS SDK are you using? 2.15.3 (sending with Node.js 3.1.5), iOS 13.7
  2. How did you add the SDK to your project (eg. cocoapods) CocoaPods

Steps to Reproduce Issue: Push a notification with buttons.

Data: {"doc":{"_id":"note_11ea-bf8d-c3bd0aceac1c","type":"note"}}

Buttons: [{"id":"mark_as_done","text":"Markeer as Done"},{"id":"postpone_one_hour","text":"Postpone with an hour"},{"id":"postpone_one_day","text":"Postpone with a day"}]

Sending this multiple times (with intervals of about 5-10 seconds) results in some messages with buttons and some without action buttons.

Any ideas?

rvanzon avatar Sep 14 '20 08:09 rvanzon

the problem also occurs on iOS 14...any ideas?

rvanzon avatar Sep 22 '20 19:09 rvanzon

Howdy, We had a previously reported issue about action buttons not working until an image was added. Are you sending an image? If not, can you test with an image to see if it is still reproducible?

Take a look at the previous issue here for more insight

rgomezp avatar Sep 24 '20 20:09 rgomezp

@rgomezp thanks for your answer! I tried adding an image using ios_attachments. The image is showing every time, but again, buttons are not always there.

I also tested it via the Web-interface (https://app.onesignal.com/), to exclude if the problem lays with the Rest-Interface or Node-SDK. And, the same problem there. I tried all kinds of variations: setting content-available to true, changed button-IDS o.a.

Any way to debug this?

rvanzon avatar Sep 28 '20 10:09 rvanzon

Hi @rvanzon , Thank you for the follow-up. Can you confirm of the mode (foreground/background) of the app when receiving the notifications? If possible to reproduce, you can use our SetLogLevel method to Verbose. This will help log any issues to your IDE console, and we can better see what is happening in the app.

More on this method in the SDK docs

If you need further help, please send these logs through Pastebin or at least a .txt file, that would be much appreciated!

tyang1 avatar Oct 10 '20 07:10 tyang1

Howdy @rvanzon , When you say that you tested it in the web interface, are you referring to Web Push? Or are you referring to the preview in the notification builder from the OneSignal dashboard?

Thank you in advance for this clarification.

rgomezp avatar Oct 26 '20 19:10 rgomezp

+1 same problem here

peterpaulis avatar Oct 27 '20 14:10 peterpaulis

Hi @rvanzon , Thank you for the follow-up. Can you confirm of the mode (foreground/background) of the app when receiving the notifications?

It doesn't matter if the app is active, unloaded or on background. Sometimes the buttons show up, but mostly they refuse to show up.

If possible to reproduce, you can use our SetLogLevel method to Verbose. This will help log any issues to your IDE console, and we can better see what is happening in the app.

I set the log level to verbose and pusht a message. Here the complete log: https://pastebin.pl/view/383035cc (ID's and other provide data are replaced with SNAP, it will be available for a week).

The log contains starting the iOS-app and receiving a push-notification.

More on this method in the SDK docs

If you need further help, please send these logs through Pastebin or at least a .txt file, that would be much appreciated!

rvanzon avatar Oct 27 '20 14:10 rvanzon

Howdy @rvanzon , When you say that you tested it in the web interface, are you referring to Web Push? Or are you referring to the preview in the notification builder from the OneSignal dashboard?

I mean the dashboard indeed. We're not using WebPush. Both methods result in the same instability.

Thank you in advance for this clarification.

Thank you!

rvanzon avatar Oct 27 '20 14:10 rvanzon

@rgomezp it seems fixed. Is that correct? At least, with all tests buttons appear, so far.

rvanzon avatar Nov 10 '20 08:11 rvanzon

Closing as fixed

emawby avatar Nov 24 '20 19:11 emawby

This is still not fixed... some of our notifications mysteriously don't have buttons, some do

peterpaulis avatar Nov 26 '20 15:11 peterpaulis

+1 same problem here

rahulmmohan avatar Mar 22 '21 12:03 rahulmmohan

@rgomezp the problem seems user-related/specific. For some users it fails a lot or always (buttons are not visible), for others, including my test-devices and accounts it works perfectly. Very weird. Any idea?

rvanzon avatar Apr 30 '21 22:04 rvanzon

This is very strange indeed.

Do you have any info on the iPhones it works vs not works on?

rgomezp avatar May 05 '21 19:05 rgomezp

@rgomezp I don't see any difference in model, iOS-versions etc. Could it have something to do with the registration-date of the user?

@peterpaulis do you maybe have more information?

rvanzon avatar May 14 '21 18:05 rvanzon

this is really strange, looks like it worked for some time, now we are registering this issue again, iOS15, latest OS SDK 3.10.0

peterpaulis avatar Jan 10 '22 13:01 peterpaulis

@peterpaulis Are you able to reproduce this issue?

emawby avatar Feb 28 '22 20:02 emawby

it appears to be random in nature

peterpaulis avatar Mar 14 '22 11:03 peterpaulis

I apologize for not following up. Is this still happening on the latest versions of iOS and the OneSignal SDK? We were never able to reproduce this issue.

emawby avatar Mar 23 '23 17:03 emawby

Hi

Looks like a newer version of cocoapods that came out during this issue fixed this

Dňa št 23. 3. 2023 o 18:36 Elliot Mawby @.***> napísala(a):

I apologize for not following up. Is this still happening on the latest versions of iOS and the OneSignal SDK? We were never able to reproduce this issue.

— Reply to this email directly, view it on GitHub https://github.com/OneSignal/OneSignal-iOS-SDK/issues/740#issuecomment-1481610122, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO5Y3GKBJXTWVEMAGZTA7TW5SCZ3ANCNFSM4RLJNRRA . You are receiving this because you were mentioned.Message ID: @.***>

-- Prajem príjemný deň... Mgr. Peter Paulis

peterpaulis avatar Mar 26 '23 12:03 peterpaulis