So the Push notification is sent manually instead of real time?
Think it defeats the use in a forum, will work well on games etc... I have the some problem
Android & iOS Mobile Apps
- Edited
Chope calmlybreath
It's not useless. You can send general announcements and news to your community. You already get notification emails, what else do you need? The analytic alone is good enough for me.
- Edited
0E800 http://blog.nkdroidsolutions.com/android-facebook-login-example-v4/
Currently trying to apply this method. Hopefully this will detect when Facebook login button is pressed and work as intended.
For now you can do this:
Under onPageStarted add:
if (url.startsWith("https://m.facebook.com/dialog/oauth?") {
webView.loadUrl("http://aPageinYourWebsiteThatSaysSorryFacebook/GithubLoginIsn'tAvailableOnAndroidApp");
}
This way on page loads it will check if the page is a Facebook login page, (also add www. option along with m.) and if it's it will redirect the user to a static page on your flarum stating that this feature isn't currently available.
Ninja Edit: I've found my own solution on GitHub: github link
Try this but replace simple m.facebook.com links with m.facebook.com/dialog/oauth? this way users will be able to browse normal Facebook links. Only Facebook login links will be redirected to your Flarum. I've also included a screenshot as an example. (About how it looks.)
This way you don't give up on popup logins. Meanwhile, you can try to achieve the one that I posted at the top. Good luck!
If any you have any extra questions, do ask.
Ultimate ninja edit (included screenshot also here):
Legend27 level ninja edit: https://github.com/dumanpro/Android-App-for-Flarum?files=1 check out my code if you want to add swipe down to reload function. (which is an essential, in my opinion.) Also there's a small but smart boolean magic to disable mid screen loading indicator, don't miss it.
- Edited
Thank you for this info!
BTW - do you think this would work?
https://github.com/CodelightStudios/Android-Smart-Login
Edit: nevermind, this would work for a 'native app' the issue is with webview right?
- Edited
My pleasure.
Flarum.apk [1.9 MB] (No Title Bar, no Firebase enabled)
https://drive.google.com/open?id=0BzolLN2vKwxjOENkR1pObWRtMWc
(Note: Twitter, Facebook, and Github login does not work..yet)
- Edited
duman Legend27 level ninja edit: https://github.com/dumanpro/Android-App-for-Flarum?files=1 check out my code if you want to add swipe down to reload function. (which is an essential, in my opinion.) Also there's a small but smart boolean magic to disable mid screen loading indicator, don't miss it.
Thanks duman. I like it, gonna use it ?
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
For real time notification, Onesignal is the best service option. Apart from the fact that the service is free and unlimited, it can be configured with flarum-notify event to send real time notification.
There's an addon for it Onsignal here but I think it's currently abandoned.
https://discuss.flarum.org/d/4144-onesignal-integration-extension-for-web-push-notifications
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?
Why are you guys not looking into Onesignal?
It's seems a better option.
Cost effective too!
- Edited
duman Nice pulldown refresh done. I will try to add that to my own flarum app here. It could be a little bit difficult since I am still using Eclipse for creating it.
- Edited
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.