جوجل فايربيس كونسول Google Firebase Console للتطبيقات - الكوردوفا و الفون جاب
الكوردوفا و الفون جاب Phone Gap / Cordova
اكتب هذا الامر لتثبيت الفاير بيس
ثم اذهب الىكود:cordova plugin add cordova-plugin-firebase
https://firebase.google.com/
وراجع هذا الموضوع
ثم قم باخذ هذا الملف google-services بعد تحميله وضعه قبل www
كود:- My Project/ platforms/ plugins/ www/ config.xml google-services.json <-- GoogleService-Info.plist <-- بعد ذلك قم بانشاء ملف styles على هذا المسار /res/values/styles.xml وضع بداخله هذا الكودهذا الكود سياخذ الايقون الصغير و الكبير الموجود فى ملفات التطبيق الاساسية وستظهر عندر ارسال notifcationكود:<?xml version="1.0" encoding="utf-8" ?> <resources> <!-- inherit from the material theme --> <style name="AppTheme" parent="android:Theme.Material"> <item name="android:windowDisablePreview">true</item> </style> <drawable name="notification_big">@mipmap/icon</drawable> <drawable name="notification_icon">@mipmap/icon</drawable> </resources>
المرجع :
https://www.npmjs.com/package/cordova-plugin-firebase
المفضلات