Invaild push token published.


First of all, I appreciated with this great Expo.

I have a problem with ‘push notification’.

I developed my app to get push token following the official docs’ example,

And many of my app users are stable getting push noties.

But, I encountered some people’s response, noties not come.

So, I debugged and got what is problem.

Sometimes the token publised is invalid.

It looks like very valid… the format and when I tested with ‘Postman(’, I got ‘200 response’ and response noties.

But, real device can’t receve it.

After I deleted app cache and data (not reinstall), and got new push token, it work very well.

It’s very sometimes occured in random.

So, I have very depressed with this problem.

Can you suggest the solution of it?

I used 24.0.0 version of expo. And my app’s dependencies are below. (If the expo is blocked by other dependencies…)

"@expo/vector-icons": "^6.2.2",
"babel-preset-expo": "^4.0.0",
"expo": "^24.0.0",
"lodash": "^4.17.4",
"react": "16.0.0",
"react-native": "",
"react-native-elements": "0.16.0",
"react-native-form-validator": "^0.1.3",
"react-native-material-bottom-navigation": "^0.5.3",
"react-native-svg": "^5.5.1",
"react-native-swiper": "^1.5.13",
"react-native-vector-icons": "^4.4.3",
"react-navigation": "^1.0.0-beta.21",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
"victory-native": "^0.16.6"

I used exactly same code with your example code in an async function in a class, and called by onPress event in render() function .

Help me please…

Thank your favor. :smiley:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.