[plugin] firebase

2 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • I also wonder, how can it connect firebase analytics to mobile games ?

  • Armench

    "Google Analytics for Firebase" does not have html api, thus my plugins does not support that feature.

  • Armench

    "Google Analytics for Firebase" does not have html api, thus my plugins does not support that feature.

    So there are no ways to connect to Firebase Analytics ?

    "Thank you for your plugins"

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Armench

    There had a cordova plugin of firebase-analytics but I did not make any cordova plugin.

  • Thanks, Rex always been fan of your plugin

  • Armench

    There had a cordova plugin of firebase-analytics but I did not make any cordova plugin.

    But when the plugin is installed, the game does not start

  • Armench

    Sorry, I have no idea.

  • Hi,

    I've been developing a mobile game and found the rex firebase plugin very helpful, so I added it to the game.

    The thing is, I've seen some people having issues with the plugin on mobile games.

    Can I get feedback from anybody regarding the compatibility of the plugin for iOS or Android game?

  • Hi,

    I've been developing a mobile game and found the rex firebase plugin very helpful, so I added it to the game.

    The thing is, I've seen some people having issues with the plugin on mobile games.

    Can I get feedback from anybody regarding the compatibility of the plugin for iOS or Android game?

    In theory it should work fine. I think the only issue on mobile had to deal with certain authentication methods like Facebook/Google login that requires an In-App Browser to work. cranberrygame released an In-App browser plugin that will get this to work:

  • rexrainbow

    i found that firebase authentication:on logged out by other app always called when layout starts, although i don't call it. Is it a bug?

  • Hey Rex, really hoping for some clarification on how I SEARCH for values?

    I was able to use itemTable to pull down ALL the data, but I only want data that has status:new.

    I'm super confused on if Firebase and your plugin can query... So I tried the Query plugin, and can't do anything with it.

    I haven't found any good tutorials past Leaderboard -- which isn't what I need.

    Any help appreciated!

  • FINALLY SOMETHING -- I found the Item BOOK object which can query, that lead me to the capx file on your site and got me sorted out.

    THANKS.

  • Hi guys! I am having a different problem here...

    I am not able to export the project!

    Evry time that i try to compile in coccon.io it just sends me an error... i am using "cordova-plugin-firebase" plugin...

    the error is:

    COMPILER ERROR:

    /workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:3: error: cannot find symbol

    import android.app.NotificationChannel;

    ^

    symbol: class NotificationChannel

    location: package android.app

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:129: error: constructor Builder in class Builder cannot be applied to given types;

    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);

    ^

    required: Context

    found: FirebasePluginMessagingService,String

    reason: actual and formal argument lists differ in length

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:187: error: cannot find symbol

    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {

    ^

    symbol: variable O

    location: class VERSION_CODES

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol

    NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);

    ^

    symbol: class NotificationChannel

    location: class FirebasePluginMessagingService

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol

    NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);

    ^

    symbol: class NotificationChannel

    location: class FirebasePluginMessagingService

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    5 errors

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ':compileArmv7DebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    CORDOVA LOG:

    coon-plugin-android-architecture/LICENSE

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/plugin.xml

    Preparing Firebase on Android

    [2018-07-27T18:02:56.551] [DEBUG] AndroidBuilder - [build]

    Warning: File /.android/repositories.cfg could not be loaded.

    yes: standard output: Broken pipe

    yes: write error

    [2018-07-27T18:02:57.996] [DEBUG] AndroidBuilder - [build] call cordova

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md

    skipping existing file: architecture.gradle

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/LICENSE

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/README.md

    cp: dest file already exists: /workspace/plugins/cocoon-plugin-android-architecture/plugin.xml

    Preparing Firebase on Android

    ANDROID_HOME=/opt/cocoon_compiler/workspace/production/data/sdks/android-sdks-linux

    JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

    Subproject Path: CordovaLib

    Starting a Gradle Daemon, 18 stopped Daemons could not be reused, use --status for details

    null

    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

    at build_egpvgxu76kqmkip1uusrena6f.run(/workspace/platforms/android/build.gradle:141)

    org.xwalk:xwalk_core_library:22+

    Not writing assets/xwalk-command-line since file already exists.

    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

    Incremental java compilation is an incubating feature.

    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

    :preBuild UP-TO-DATE

    :preArmv7DebugBuild UP-TO-DATE

    :checkArmv7DebugManifest

    :preArmv7ReleaseBuild UP-TO-DATE

    :preX86DebugBuild UP-TO-DATE

    :preX86ReleaseBuild UP-TO-DATE

    :CordovaLib:preBuild UP-TO-DATE

    :CordovaLib:preDebugBuild UP-TO-DATE

    :CordovaLib:checkDebugManifest

    :CordovaLib:prepareDebugDependencies

    :CordovaLib:compileDebugAidl

    :CordovaLib:compileDebugNdk UP-TO-DATE

    :CordovaLib:compileLint

    :CordovaLib:copyDebugLint UP-TO-DATE

    :CordovaLib:mergeDebugShaders

    :CordovaLib:compileDebugShaders

    :CordovaLib:generateDebugAssets

    :CordovaLib:mergeDebugAssets

    :CordovaLib:mergeDebugProguardFiles

    :CordovaLib:packageDebugRenderscript UP-TO-DATE

    :CordovaLib:compileDebugRenderscript

    :CordovaLib:generateDebugResValues

    :CordovaLib:generateDebugResources

    :CordovaLib:packageDebugResources

    :CordovaLib:processDebugManifest

    :CordovaLib:generateDebugBuildConfig

    :CordovaLib:processDebugResources

    :CordovaLib:generateDebugSources

    :CordovaLib:incrementalDebugJavaCompilationSafeguard

    :CordovaLib:compileDebugJavaWithJavac

    :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    :CordovaLib:processDebugJavaRes UP-TO-DATE

    :CordovaLib:transformResourcesWithMergeJavaResForDebug

    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

    :CordovaLib:mergeDebugJniLibFolders

    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

    :CordovaLib:bundleDebug

    :CordovaLib:preReleaseBuild UP-TO-DATE

    :CordovaLib:checkReleaseManifest

    :CordovaLib:prepareReleaseDependencies

    :CordovaLib:compileReleaseAidl

    :CordovaLib:compileReleaseNdk UP-TO-DATE

    :CordovaLib:copyReleaseLint UP-TO-DATE

    :CordovaLib:mergeReleaseShaders

    :CordovaLib:compileReleaseShaders

    :CordovaLib:generateReleaseAssets

    :CordovaLib:mergeReleaseAssets

    :CordovaLib:mergeReleaseProguardFiles

    :CordovaLib:packageReleaseRenderscript UP-TO-DATE

    :CordovaLib:compileReleaseRenderscript

    :CordovaLib:generateReleaseResValues

    :CordovaLib:generateReleaseResources

    :CordovaLib:packageReleaseResources

    :CordovaLib:processReleaseManifest

    :CordovaLib:generateReleaseBuildConfig

    :CordovaLib:processReleaseResources

    :CordovaLib:generateReleaseSources

    :CordovaLib:incrementalReleaseJavaCompilationSafeguard

    :CordovaLib:compileReleaseJavaWithJavac

    :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    :CordovaLib:processReleaseJavaRes UP-TO-DATE

    :CordovaLib:transformResourcesWithMergeJavaResForRelease

    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

    :CordovaLib:mergeReleaseJniLibFolders

    :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

    :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

    :CordovaLib:bundleRelease

    :prepareComAndroidSupportSupportCompat2420Library

    :prepareComAndroidSupportSupportCoreUi2420Library

    :prepareComAndroidSupportSupportCoreUtils2420Library

    :prepareComAndroidSupportSupportFragment2420Library

    :prepareComAndroidSupportSupportMediaCompat2420Library

    :prepareComAndroidSupportSupportV42420Library

    :prepareComGoogleAndroidGmsPlayServicesAds902Library

    :prepareComGoogleAndroidGmsPlayServicesAdsIdentifier1501Library

    :prepareComGoogleAndroidGmsPlayServicesAdsLite902Library

    :prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl1601Library

    :prepareComGoogleAndroidGmsPlayServicesBase1501Library

    :prepareComGoogleAndroidGmsPlayServicesBasement1501Library

    :prepareComGoogleAndroidGmsPlayServicesClearcut1501Library

    :prepareComGoogleAndroidGmsPlayServicesFlags1501Library

    :prepareComGoogleAndroidGmsPlayServicesMeasurementBase1600Library

    :prepareComGoogleAndroidGmsPlayServicesPhenotype1501Library

    :prepareComGoogleAndroidGmsPlayServicesStats1501Library

    :prepareComGoogleAndroidGmsPlayServicesTagmanager1601Library

    :prepareComGoogleAndroidGmsPlayServicesTagmanagerApi1601Library

    :prepareComGoogleAndroidGmsPlayServicesTasks1501Library

    :prepareComGoogleFirebaseFirebaseAbt1600Library

    :prepareComGoogleFirebaseFirebaseAnalytics1601Library

    :prepareComGoogleFirebaseFirebaseAnalyticsImpl1611Library

    :prepareComGoogleFirebaseFirebaseAuth1602Library

    :prepareComGoogleFirebaseFirebaseAuthInterop1600Library

    :prepareComGoogleFirebaseFirebaseCommon1600Library

    :prepareComGoogleFirebaseFirebaseConfig1600Library

    :prepareComGoogleFirebaseFirebaseCore1601Library

    :prepareComGoogleFirebaseFirebaseCrash1601Library

    :prepareComGoogleFirebaseFirebaseIid1620Library

    :prepareComGoogleFirebaseFirebaseIidInterop1600Library

    :prepareComGoogleFirebaseFirebaseMeasurementConnector1600Library

    :prepareComGoogleFirebaseFirebaseMeasurementConnectorImpl1601Library

    :prepareComGoogleFirebaseFirebaseMessaging1710Library

    :prepareComGoogleFirebaseFirebasePerf1600Library

    :prepareMeLeolinShortcutBadger114Library

    :prepareOrgApacheCordovaCordovaLib623DebugLibrary

    :prepareOrgXwalkXwalk_core_library22525614Library

    :prepareWebviewplusReleaseLibrary

    :prepareArmv7DebugDependencies

    :compileArmv7DebugAidl

    :compileArmv7DebugRenderscript

    :generateArmv7DebugBuildConfig

    :generateArmv7DebugResValues

    :generateArmv7DebugResources

    :mergeArmv7DebugResources

    :processArmv7DebugManifest

    :processArmv7DebugResources

    :generateArmv7DebugSources

    :incrementalArmv7DebugJavaCompilationSafeguard

    :compileArmv7DebugJavaWithJavac

    :compileArmv7DebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:3: error: cannot find symbol

    import android.app.NotificationChannel;

    ^

    symbol: class NotificationChannel

    location: package android.app

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:129: error: constructor Builder in class Builder cannot be applied to given types;

    NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);

    ^

    required: Context

    found: FirebasePluginMessagingService,String

    reason: actual and formal argument lists differ in length

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:187: error: cannot find symbol

    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {

    ^

    symbol: variable O

    location: class VERSION_CODES

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol

    NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);

    ^

    symbol: class NotificationChannel

    location: class FirebasePluginMessagingService

    /workspace/platforms/android/src/org/apache/cordova/firebase/FirebasePluginMessagingService.java:188: error: cannot find symbol

    NotificationChannel channel = new NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_HIGH);

    ^

    symbol: class NotificationChannel

    location: class FirebasePluginMessagingService

    Note: Some input files use or override a deprecated API.

    Note: Recompile with -Xlint:deprecation for details.

    5 errors

    :compileArmv7DebugJavaWithJavac FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:

    Execution failed for task ':compileArmv7DebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 32.449 secs

  • the links for the plugins are not working for me it doesn't open when i click it

  • Hey guys. Sorry to bother you. This is an ancient thread. Normally I don't post on threads this old, but seeing as the last post was only six months ago, I figured I'd try it. I am currently trying to find a way to save my player's in-game wealth (how much in-game currency they have) to a database. I want to do this so I can add in-app purchases for more currency, and not worry about losing that data. It seems firebase is the best way to do this, and rex's plugins are the best way to connect to it. I have talked a lot about this across the board in various threads, but can't get super good answers to my questions.

    So, Is this something I can accomplish with these plugins?

    Do these plugins still work with the current construct 3 runtime? Do you recommend me use them?

    If so, Could one of you send me a link to the up-to-date plugins?

    And, If you know of any super simple tutorials for less avid programmers (like myself), point me in their direction. thanks!

Jump to:
Active Users
There are 3 visitors browsing this topic (0 users and 3 guests)