Im essayant de localiser les notifications push (rapide 3, ios 10) avec la charge utile:rapide 3 - localisation pour la notification push fonctionne pas
{
"aps":{
"alert":{
"title_loc_key":"NOTIFICATION_NEW_FRIEND_REQUEST_TITLE",
"title-loc-args":[],
"loc_key":"NOTIFICATION_NEW_FRIEND_REQUEST_BODY",
"loc-args":[]
},
"mutable_content":1,
"category":"new_friend_request",
"badge":0,
"sound":"default"
}
}
sur les Localizable.strings j'ai:
"NOTIFICATION_NEW_FRIEND_REQUEST_TITLE" = "some text";
"NOTIFICATION_NEW_FRIEND_REQUEST_BODY" = "some text"
La langue de mon système est Le problème est que cette notification arrive (mon iPhone vibre) mais rien ne s'affiche. Quel est le problème et comment résoudre ce problème?
'' titre title_loc_key' vs-loc-key' et '' loc_key' vs loc-key' Le doc semble pour définir les clés avec "-" et vous mélangez (en utilisant "-" et "_") https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CreatingtheNotificationPayload.html – Larme
thx, Je sais, erreur stupide (( –
) N'oubliez pas de voter la bonne réponse @TabirtaAdrian –