15 days later

so this basically just including firebase without do push notification when user mention to other user? or other things?
user engagement is the key for this push notification to works. not all user/people setup their email in its phone.

thanks

@mgilang Someone with extensive Firebase experience might be able to show how to add that.

The issue is that this android app just emulates your flarum website in an android window.
Its not a native android app.

Someone would need to find a way to replace / migrate the current mysql authentication with a firebase authentication. There is some documentation online about how to do this but its way over my current dev abilities.

Ref:
http://marcelpociot.de/blog/2016-06-20-synchronise-laravel-eloquent-models-with-firebase
https://github.com/mpociot/laravel-firebase-sync
https://stackoverflow.com/questions/38425743/migrate-mysql-to-firebase
https://db-engines.com/en/system/Firebase+Realtime+Database%3BMySQL%3BSQLite

    0E800
    yes i hear this also from my dev friend.
    other way is flarum need to release the stable API to make the native android app possible.

    thanks

    0E800 love seeing Marcel Pociot linked here, I've worked with his package before but don't understand why that package would help here. Also for Marcel's package to work we'd need to be on an illuminate version that supports scout, Flarum is stuck at 5.1 at this point.

    Could you explain what is necessary to make firebase authentication work? Feel free to create a separate thread about this and link back?

      luceos no need to replace authentication.. but will need to store firebase tokens for each user in db (array or seperate table). already halfway through on that.

      Why are you guys not looking into Onesignal?
      It's seems a better option.
      Cost effective too!

      a month later
      12 days later

      where is the problem?

      i got error:

       
      Information:Gradle tasks [:app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources]
      C:\Users\Sanver\Desktop\flarum-mobile-android-master\app\src\main\java\org\flarum\flarum\FCM\MyFirebaseMessagingService.java
      Error:(15, 25) error: cannot find symbol class R
      Error:(50, 32) error: package R does not exist
      Error:(49, 94) error: package R does not exist
      C:\Users\Sanver\Desktop\flarum-mobile-android-master\app\src\main\java\org\flarum\flarum\MainActivity.java
      Error:(34, 25) error: package R does not exist
      Error:(35, 51) error: package R does not exist
      Error:(38, 45) error: package R does not exist
      Error:(40, 51) error: package R does not exist
      Error:(100, 36) error: package R does not exist
      Error:(112, 20) error: package R does not exist
      Error:(119, 27) error: package R does not exist
      Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
      Compilation failed; see the compiler error output for details.
      Information:BUILD FAILED
      Information:Total time: 2.676 secs
      Information:11 errors
      Information:0 warnings
      Information:See complete output in console
      

      Edit: actually i bypass the problem with make the name of package name "org.flarum.flarum" on developers.google.

        Felli yeap, after that i changed the package_name , just after that i got this error above.

        You also changed the file folders as well right?

          When you download the open source project go into the files org / flarum / flarum then change them to fit your website domain, then using Android Studios or any coding editor with a Java extension, and search the whole project for code referring to org.flarum.flarum and change it to fit the folders you just changed, once that is done using Android Studios you should be able to create either a debug.apk or release.apk.

            sorry, i didnt get it :/
            when i extract the project which i downloaded from github, i see the files and folders below :

            app	Update google-services.json	4 months ago
            gradle/wrapper	Update gradle-wrapper.properties	4 months ago
            screenshots	Reduced resolutions	6 months ago
            .gitignore	Initialize Repo	6 months ago
            README.md	Update README.md	4 months ago
            build.gradle	Added Share button	4 months ago
            gradle.properties	Initialize Repo	6 months ago
            gradlew	Initialize Repo	6 months ago
            gradlew.bat	Initialize Repo	6 months ago
            settings.gradle	Initialize Repo
            

            Felli When you download the open source project go into the files org / flarum / flarum

            where are the org / flarum / flarum folders? :/

              This is a new Android app.io

              sanwhere
              Change the org / flarum / flarum folders to com / your / domain then search for anything referring to org.flarum.flarum and change it to com.your.domain with any code editor (I myself use Atom.io) and that's about it, but just to note that the Gradle will most likely need to be updated sooner or later.

                Felli and also, main folder has /org/flarum/flarum folders.
                i ll change them and try again, thanks for the response.