{"action":"created","issue":{"url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/605","repository_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal","labels_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/605/comments","events_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/605/events","html_url":"https://github.com/geektimecoil/react-native-onesignal/issues/605","id":351311415,"node_id":"MDU6SXNzdWUzNTEzMTE0MTU=","number":605,"title":"One signal conflict with react-native-push-notification","user":{"login":"manxhong","id":10340116,"node_id":"MDQ6VXNlcjEwMzQwMTE2","avatar_url":"https://avatars1.githubusercontent.com/u/10340116?v=4","gravatar_id":"","url":"https://api.github.com/users/manxhong","html_url":"https://github.com/manxhong","followers_url":"https://api.github.com/users/manxhong/followers","following_url":"https://api.github.com/users/manxhong/following{/other_user}","gists_url":"https://api.github.com/users/manxhong/gists{/gist_id}","starred_url":"https://api.github.com/users/manxhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manxhong/subscriptions","organizations_url":"https://api.github.com/users/manxhong/orgs","repos_url":"https://api.github.com/users/manxhong/repos","events_url":"https://api.github.com/users/manxhong/events{/privacy}","received_events_url":"https://api.github.com/users/manxhong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-08-16T18:07:14Z","updated_at":"2018-08-24T11:10:41Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n 1. IF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MAY CLOSE YOUR ISSUE WITHOUT INVESTIGATION\r\n 2. SEARCH EXISTING ISSUES FOR AN ANSWER: https://goo.gl/pspQNY\r\n 3. See our Common Issues documentation: https://goo.gl/BDcfZZ\r\n 4. See our contributing guidelines: https://goo.gl/h19DnX\r\n-->\r\n\r\n**Description:**\r\n<!-- (write below this line) -->\r\nHi, I am trying to have local and remote notification for my apps. I am using **react-native-push-notification** for local notification and **react-native-ios-notification-actions** for action buttons (**because OneSignal P2P notification doesn't provide action button**).  The local notification with action buttons work fine but after **OneSignal.init()** the notification actions button won't respond but only showing with the local notification.I tried to remove One signal SDK by **rm-rf node_modules/react-native-onesignal**, and the action buttons work fine without the One signal SDK.  I am wondering is there a way that both libraries can work together without conflict?\r\n\r\n**Environment**\r\n<!-- Example:\r\n1. What version of the OneSignal React-Native SDK are you using?\r\n2. How did you add the SDK to your project (eg. npm)\r\n -->3.2.6\r\nnpm install --save react-native-onesignal \r\nreact-native link react-native-onesignal\r\n\r\n**Steps to Reproduce Issue:**\r\n<!--\r\n  Example:\r\n\r\n  1. Install the OneSignal SDK using npm into your project\r\n  2. Initialize the SDK in the iOS AppDelegate\r\n  3. Attempt to receive a push notification\r\n\r\n  (write below this line) -->\r\n\r\n1. Install the react-native-push-notification & react-native-ios-notification-actions using npm into your project\r\n2. Receive a local notification with working action buttons\r\n3. Install the OneSignal SDK using npm into your project\r\n4. Initialize the SDK in the iOS AppDelegate & componentDidMount()\r\n5. Receive a local notification from react-native-push-notification & react-native-ios-notification-actions libraries, but the action buttons won't respond.\r\n6. Remove the One Signal SDK using rm-rf node_modules/react-native-onesignal and unlink it.\r\n7. Receive a local notification with working action buttons.\r\n\r\n**Anything else:**\r\n\r\nI have been working on this issues for 2 days, and also looked into IOS native code to fix the issues but no luck.  Thanks for advance for your help!\r\n\r\n<!--\r\n  SEARCH EXISTING ISSUES FOR AN ANSWER: https://goo.gl/pspQNY\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/comments/415728305","html_url":"https://github.com/geektimecoil/react-native-onesignal/issues/605#issuecomment-415728305","issue_url":"https://api.github.com/repos/geektimecoil/react-native-onesignal/issues/605","id":415728305,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTcyODMwNQ==","user":{"login":"25matt12","id":5870814,"node_id":"MDQ6VXNlcjU4NzA4MTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5870814?v=4","gravatar_id":"","url":"https://api.github.com/users/25matt12","html_url":"https://github.com/25matt12","followers_url":"https://api.github.com/users/25matt12/followers","following_url":"https://api.github.com/users/25matt12/following{/other_user}","gists_url":"https://api.github.com/users/25matt12/gists{/gist_id}","starred_url":"https://api.github.com/users/25matt12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/25matt12/subscriptions","organizations_url":"https://api.github.com/users/25matt12/orgs","repos_url":"https://api.github.com/users/25matt12/repos","events_url":"https://api.github.com/users/25matt12/events{/privacy}","received_events_url":"https://api.github.com/users/25matt12/received_events","type":"User","site_admin":false},"created_at":"2018-08-24T11:10:41Z","updated_at":"2018-08-24T11:10:41Z","author_association":"NONE","body":"Hello,\r\n\r\nI have the same problem, if I use react-native-push-notification only, the didReceiveRemoteNotification function from the AppDelegate.m gets called (I've put a breakpoint inside the function for testing purpose) and everything works as expected.\r\n\r\nNow, if I install OneSignal SDK and initialise it from the JS code, the didReceiveRemoteNotification function is not triggered anymore when I receive a regular notification.\r\n\r\nThis was working previously with the 3.0.x version of the SDK and the initialisation via the AppDelegate.m instead of the initialisation from the JS code.\r\n\r\nMore disturbing, if I install the SDK, setup the app extension but does not initialise the SDK at all, regular notifications are still not working and the didReceiveRemoteNotification is still not triggered.\r\n\r\nAny idea where this might come from?"}}
{"actor":{"display_login":"25matt12"}}