itisnajim / strapi-plugin-fcm

Send FCM notifications from your Strapi app.
MIT License
22 stars 11 forks source link

NO TARGETS FOUND.. #7

Open ahmed-essid opened 1 year ago

ahmed-essid commented 1 year ago

LOADING... NO TARGETS FOUND. Add topics to 'FCM Topic' Collection, and optionally configure which collection contains the devices tokens.

TARGETS SELECTED: 0

"@strapi/strapi": "4.4.3", "better-sqlite3": "7.4.6", "strapi-plugin-fcm": "^1.0.5",

and I received an error in strapi backend..

image fcm topic image image image

itisnajim commented 1 year ago

change deviceTokenFieldName value to device_token, like i did https://github.com/itisnajim/strapi-plugin-fcm#configuration

ahmed-essid commented 1 year ago

I do that .. so this is how deviceToken displaying in user schema and here is the error .. image image image

itisnajim commented 1 year ago

i'm using postgres, mysql not tested yet, if you can switch to postgres until this issue get fixed, thanks for understanding

themtaysw commented 1 year ago

i'm using postgres, mysql not tested yet, if you can switch to postgres until this issue get fixed, thanks for understanding

i am using mysql as well and yes changing to device_token helped so thanks ❤️