PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile (earlier versions)
→
ios firebase
ios firebase
Started by nac, Jan., 24 2024 4:12 PM - 4 replies
Connect yourself…
nac
#1
Registered member
29 messages
Posted on January, 24 2024 - 4:12 PM
Bonjour a tous ,
Mon app WM 27 utilise la reception des notifications push Firebase.
Coté Android tout fonctionne mais coté iOS le tokenid pose probleme. Il est vient en Hexa et ça ne fontionne pas. J'ai essayé de le convertir vers un token comme sous Android mais la non plus pas vraiment de résultat.
J'espere que quelqu'un pourra m'aider car ca fait 2 jours que je suis dessus.
Merci d'avance
Voici mon code :
PROCEDURE ActivatePushNotif(bufIdentifier is Buffer, sError is string)
IF Length(bufIdentifier) > 0 THEN
// Informs the application server about the new identifier
<COMPILE IF TypeConfiguration = Android>
bufTokenid=AnsiToUnicode(bufIdentifier)
<ELSE>
bufTokenid= Encode(BufferToHexa(bufIdentifier,4,BigEndian),encodeBASE64)
<END>
IF ErrorOccurred() THEN
// Error
Error("Failure calling the Web service",ErrorInfo())
END
ELSE
// Returns the error returned by the service
Error("Backup error: ", sError)
END
Report
0
0
Popoy
#2
Registered member
3,348 messages
Popularité : +93 (137 votes)
Posted on January, 24 2024 - 4:23 PM
https://forum.pcsoft.fr/fr-FR/pcsoft.fr.windevmobile/47776-ios-notifications-push-47778/read.awp
Report
0
0
nac
#3
Registered member
29 messages
Posted on January, 24 2024 - 6:01 PM
Merci Popoy
Je n'ai pas le code du webservice WD Serveur Push. Ou je peux le télécharger ?
Report
0
0
Popoy
#4
Registered member
3,348 messages
Popularité : +93 (137 votes)
Posted on January, 24 2024 - 10:26 PM
nac a écrit :
Merci Popoy
Je n'ai pas le code du webservice WD Serveur Push. Ou je peux le télécharger ?
C'est fourni avec les exemples windev mobile
En 25, j'ai pas la 27
https
:
//package.windev.com/pack/wx25/exemples/wx25_064/wm/fr/multiplateforme/push mobile/ios push/a3c817b8844995c42b737e753e1d6aea.zip
https
:
//package.windev.com/pack/wx25/exemples/wx25_064/wm/fr/multiplateforme/push mobile/wd envoi push/cdf99f189a5ff2d601c9c8b2c28c6775.zip
https
:
//package.windev.com/pack/wx25/exemples/wx25_064/wm/fr/multiplateforme/push mobile/wd serveur push/d25e1bebac9ae4d0bfa41ed58ceabada.zip
Message modified, January, 24 2024 - 10:28 PM
Report
0
0
nac
#5
Registered member
29 messages
Posted on January, 25 2024 - 9:28 AM
Super merci
Report
0
0
→ Go back to WINDEV Mobile (earlier versions)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
WEBDEV (earlier versions)
WINDEV Mobile (earlier versions)
Reports & Queries
Off-topic
Tools
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text