Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

on_notification event not fires on iOS when app is closed & user clicks on interactive button #34

@adamivancza

Description

@adamivancza

Hi @rlepinski ,

I've an issue with the on_notification event - it not fires if the following conditions are met:

  • app closed
  • user clicks on an interactive button of the Notification (actually I've only tried with Tell Me More button).

FYI: it works fine if I just click on the notification - on_notification fires properly in this case.

I did some digging in the iOS code and I think the issue lies in either
https://github.com/globocom/react-native-ua/blob/master/ios/ReactNativeUAIOS/ReactNativeUAIOS.m#L202

or here
https://github.com/globocom/react-native-ua/blob/master/ios/ReactNativeUAIOS/ReactNativeUAIOS.m#L224

Could it be that in this case the notificationResponse.actionIdentifier is not UANotificationDefaultActionIdentifier?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions