React-native-push-notification: iOS - notification doesn't appear

Created on 20 Sep 2017  路  2Comments  路  Source: zo0r/react-native-push-notification

hi,

I have a problem when I use push notification in iOS, It's work fine in android simulator and Device but when I use in iOS simulator and device it doesn't appear.

I follow the set up and I think it's should be work

I use this code to test notification

PushNotification.localNotification({
     message: "Hello world"
})

and in Xcode log appear this message

'NOTIFICATION:', { foreground: true,
  userInteraction: false,
  message: 'Hello world',
  data: {},
  badge: 0,
  alert: 'Hello world',
  sound: 'default' }

but in iOS device doesn't have any response

hope someone can help me. thank!! :)

Most helpful comment

@efiorello oh I already know it.
This is my error. I didn't know that notification for iOS will not appear when app are working but in android work. its make me misunderstood that iOS app not working

All 2 comments

Did you find the problem?

@efiorello oh I already know it.
This is my error. I didn't know that notification for iOS will not appear when app are working but in android work. its make me misunderstood that iOS app not working

Was this page helpful?
0 / 5 - 0 ratings