Add firebaseMessagingClient to ensure the Firebase app is created from VITE_FIREBASE_*, wire PushNotifications (listeners, requestPermissions, register) before token work, and call getMessaging/getToken/onMessage when firebase/messaging is supported. Hook startup from main.capacitor and set PushNotifications presentationOptions in capacitor.config. Depend on firebase and @capacitor/push-notifications.
30 lines
978 B
Groovy
30 lines
978 B
Groovy
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
|
|
|
android {
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
}
|
|
|
|
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
|
dependencies {
|
|
implementation project(':capacitor-community-sqlite')
|
|
implementation project(':capacitor-mlkit-barcode-scanning')
|
|
implementation project(':capacitor-app')
|
|
implementation project(':capacitor-camera')
|
|
implementation project(':capacitor-clipboard')
|
|
implementation project(':capacitor-filesystem')
|
|
implementation project(':capacitor-push-notifications')
|
|
implementation project(':capacitor-share')
|
|
implementation project(':capacitor-status-bar')
|
|
implementation project(':capawesome-capacitor-file-picker')
|
|
implementation project(':timesafari-daily-notification-plugin')
|
|
|
|
}
|
|
|
|
|
|
if (hasProperty('postBuildExtras')) {
|
|
postBuildExtras()
|
|
}
|