Skip to main content
Topic: ElkArte Community Android App (Read 17461 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

ElkArte Community Android App

I was creating a simple app for my community. So I thought, since it is very simple, why don't I create one for ElkArte community.

I personally signed this app. Anybody who wants to try it out may find the package attached. Please unzip it first as I cannot upload .apk here.  ;)

Edited. This apk has been published. You may now download it from Google Play (Market) as well.


Re: ElkArte Community Android App

Reply #2

Well, this is the first step. I think adding a notification etc won't be that difficult but we may need to pass some info as between the app and the forum. Currently, I don't do that for two main reaons. One, I am not well verse in java and its scripting / coding. Two, I am not so sure about security side of it, yet.

For your info, I implemented Sub Forums Addon on my community site. So, I can have several (subforum) sites using one app or one app for each subforum site (several apps that are).

Implementation of this is by loading specific url in each app denying others. Other url will then be forced to be opened in the browsers instead from within the app.

I will share the code for this app later.

Re: ElkArte Community Android App

Reply #3

Cool!
Unfortunately I don't have a smartphone, so I can't test it and give feedback... :(

On the security side of things, I'm not sure how mobile notifications work, I think push notifications should be sent from the forum to... a sort of account somewhere, but it's all a big blurry... LOL
Bugs creator.
Features destroyer.
Template killer.

Re: ElkArte Community Android App

Reply #4

Quote from: emanuele – I think push notifications should be sent from the forum to... a sort of account somewhere, but it's all a big blurry... LOL
there is pushover as app for all devices (ios, android and windows phone) https://pushover.net/
sorry for my bad english

Re: ElkArte Community Android App

Reply #5

the server side for push notifications to an android device seems to be easy, see here:
https://gist.github.com/prime31/5675017
Thorsten "TE" Eurich
------------------------

Re: ElkArte Community Android App

Reply #6

Nice code. That should be added inside Elk right? Ok. Consider that is added to Elk, we still need to get the THE_DEVICE_REGISTRATION_ID. Which means we need to register the device via the app, intercept the id via the app as well but the app should send the id back to server.  How do we do that?

Re: ElkArte Community Android App

Reply #7

More guides for me and those who are interested to study about adding up notification to app.

1. http://developer.android.com/google/gcm/index.html
2. http://www.androidbegin.com/tutorial/android-google-cloud-messaging-gcm-tutorial/
3. http://www.tutorialspoint.com/android/android_php_mysql.htm
4. http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging
5. http://www.androidhive.info/2014/01/how-to-create-rest-api-for-android-app-using-php-slim-and-mysql-day-12-2/
6. http://forum.xda-developers.com/showthread.php?t=1860405

The next question, what function is notifying Elk forum user? Mention? Board? Or any activities?

Re: ElkArte Community Android App

Reply #8

hmm... good question.
Ad the moment there is not a centralized mean to "notify" users of different things. The unification is part of the targets for 1.1.
The current way is split in at least two: one for "classic" notifications (those enabled by members by "notify me of replies" for example) and one for likes/other notifications I think, but at the moment I'm focusing on other stuff and I'm not sure... sorry. :-[
Bugs creator.
Features destroyer.
Template killer.

Re: ElkArte Community Android App

Reply #9

I am thinking to set if email is sent, trigger the notification via GCM. Will email be sent for all types of notification if the user doesn't opt not to be informed via email? I was thinking, if email is always sent when it is not turned off and there is any phone id registered, may be, the similar option for admin to enable sending notification to users via GCM.

Re: ElkArte Community Android App

Reply #10

Except for mentions and likes, yes, all notifications are sent via email, so sendmail should be a good point to look.
Bugs creator.
Features destroyer.
Template killer.

Re: ElkArte Community Android App

Reply #11

Ok. I will check on that first. Hopefully, I'll see some light at the end of this tunnel.

Re: ElkArte Community Android App

Reply #12

I install this app and never saw a difference with the browser. What is an idea? I thought it was going to be like Tapatalk.

Re: ElkArte Community Android App

Reply #13

As discussed above your post, this is a simple app. We did not implement notification system as yet. And even that is implemented, an addon need to be made so notification will work and pass to the app.