Using parse.com in a java desktop program? - java

I have an android app, made in Java using eclipse. It receives push notifications from parse.com just fine but now instead of logging on to parse.com to send the push notifications, I want it to be possible to send notifications from the server (without using a webview; the server is a desktop program in Java).
Can I somehow use the parse SDK in a desktop java program or is there another way to do this? Any help would be great!
PS I googled thoroughly and the docs don't cover java programs (only android).

As far as I know there is a open source library namely Parse4J where you can use your server with integration of it. Actually, it uses parse REST API as underlying architecture. Parse4j currently does not support sending push notification. However, you can write the send push procedure as cloud function and you can trigger from your server via Parse4j. This actually solves your server send push capability.
Hope this helps.
Regards.

Related

How to subscribe and receive Firebase message in pure Java (not Android)

I'm looking for the way I can create a receiver of Firebase Cloud Messages in Java. Things successfully work in Android, but I could not find anything to start in Java.
Official documentation does not mention Java as supported language, but I also did not find explicit statement that Java is not supported.
Here is the documentation entry points for Android, c++ and WEB (Browser). Where can I find something similar for Java?
Firebase Cloud Messaging does not support receiving messages on Java desktop apps.
The protocol was made for delivering messages to mobile (Android and iOS) devices, and then expanded for web clients. It seems unlikely this will be expanded to desktop or server apps in the (near) future, although I'd definitely recommend filing a feature request.
In the meantime, consider using another push technology, such as the Firebase Realtime Database or Cloud Firestore.
check out firebase_admin messaging module, I am able to successfully send messages to my android phone from my python server at home. I know it also allows you to subscribe to different messages. It supports Java but not aware of the technical differences

How to send parameters to the java program on a server and get its response from and to the android device?

I have created a simple rule based "English-to-Marathi" translator in java using Eclipse which uses OpenNlp libraries & MySql database. Also, I have built an android chat application using Firebase. I want to translate the message before displaying it to the receiver, if the receiver's language is different than the sender's. What would be the easiest method for this?
You have a lot of ways to do that, but I would go for a more microservice approach, which would consist of have the Translation Service (you need to design an API as simple as: translateThis(string):string ) and the Chat application communication with it (you could use REST for example).

Is there any method same as gcm to be used for desktop application?

I want to make one desktop application for our college so that it can be use in the way so that when we want to send update about the college fest it can be directly reached to all the person who have the desktop application in java.
For android we have the GCM concept. Is there any method for the desktop application also?
I do not want to use polling here .... So please tell me any suitable method how to do this?
Not without running a server of your own. GCM is a particular service that Google runs free of charge to encourage developers to use the Android platform, and it works by having every Android device make a TCP connection to Google and keep it open all the time waiting for incoming messages. You'd have to have your own similar server.
You could use a JMS publish/subscribe topic, but in this case, it is almost certainly a better idea to let the client poll for updates in JSON or RSS format. Is there a specific reason you don't want to poll?

Java based code that replicates Netstream and netconnection

Is there a java api that allows you to use Netstream and netconnection functions from adobe? I'm working on my android app and I am trying to add a video chat feature on the app. Since the rest of the app is already coded in java it doesn't seem like I can attach a swf file to one of the activities. So I'm looking for alternative solutions to to connect with a web based flash video chat website from the app.
There is the JUV RTMP tool which is Java API to access RTMP servers. It also support audio/video streaming but you will need to provide the codec code.
It is a paid product, but at least works fine. I could never find a good open source solution for this.

Better way to develop a remote database driven android app?

i have a wordpress blog hosted over my personal shared hosting.Now i want to develop an android app for that blog so the users can use the mobile app to see what i am writing on my blog.
Like for example you can take mashable.com android app.
so basically i have experience in programming android aap but i am just asking this so i can code it in a better way.
i have 3 idea to do this now:
1.Use rss feed of my blog and parse it and display the contents but it has a issue that rss only display most latest contents.So whether i need to store the feed contents timely on android device so a user can view the previous most content also.
But i think it's not a good idea because it will unnecessarily increase the size of database and make diff copies on every device.
2.Just simply use complete java code to pull data from my web mysql database as per the user request and just display it over the screen without storing it locally on android device.
3.Develop some sort of API solution on my web server then send the data in json or xml format so i can use it on my android device(via java) without bothering to connecting to mysql server as a core part because that part already done by on web server and my api already sending data in required format.
So these are 3 idea i have now.So please suggest me a better one form these three or you can give any other idea.
I am asking this question because previously i never programmed this sort of mobile aap where i need to pull the data from remote server.
-Thanks
You can simply install WordPress Mobile Pack to display Mobile site of your wordpress blog/site
Or
You can check this link to find out other plugins: 11 Ways to Create a Mobile Friendly WordPress Site
Now, If you want to create an app then you can simply implement it by using WebView.

Categories

Resources