Creating a Web frontend for Android App using android APIs. - php

Thank you in advance for answer the question.
Here is the scenario and I want some suggestion of guideline how I can proceed.
I have an android app for Music streaming with following features
Music Streaming Ofcourse
Creating Playlists
user signin/signout
Search by category like album or artists or genre FM Radio Streaming
Push Notification
Equalizer and so on.
I also have a backend that is created in Ruby on Rail (Mysql database) for Music management like adding songs, genre, albums and artists. It also handles sending push notification and all.
And now I want to create a web frontend for users to enjoy the songs through their laptop or desktop so that I can give my users the flexibility to play songs, view playlist that they create in android devices.
Here is the main question:
How Can I create the frontend to use the json api that my android app is using so that I dont have to create another backend for the website.? Let me know if its possible or not.
If not possible to use the json api then how can I proceed so that I avoid another backend work?

Sure it's possible. Pass the json string to the web service as a URL parameter.

Related

Integrating VR app and PHP API with LMS using SCORM

I have a VR training app for headsets and mobile devices. I understand that it is possible to create a SCORM launch file that will redirect (with data) the learner to an external URL. Where I plan to store the data and create a code for the learner to enter into the app. Once they have completed the course I would like then be able to send back the relevant information that the LMS needs.
I have been looking at a lot of information on SCORM online, which I have found rather confusing. I was hoping to find an example of how to achieve this but I haven't been able to. Is there anyone here that may be able to help?

Invitation system (push) for web app

I am creating an web app and a user can start a game with multiple players (your friends). This game is played on 1 device. Is it possible that all invited players get a notification on their device where they can accept or decline the invitation ?
So in steps
Player 1 creates a game and invites player 2 and 3
Player 2 receives a notification on his mobile device and presses accept, he is added as player of that game
Player 3 doesn't have a device and enters his PIN to accept his participation.
The step that I want to have is step2.
I have read about OneSignal who can send push notifications to specific users, but I could not find if you can send a response back (accept or decline). Or is there an other way (without to have a native app).
your question is understood but at this moment a little too broad. But. I will try to answer in concept also :)
Now...you said you already know how to send target specific notification with OneSignal.
What you need to do from now one it cloud be like this:
Attach a link or click or action to that invite. Or when such invite
arrived open a particular view in the app/web/application that you are developing and revives the link.
Attach the session/game/user/object ID to that link and send the call
to you API (which is based on your server). If you have an API, if you don't you can have a very simple API build to handle only such requests with URL xxxx.com/path/to/api/call/var1/var2/var3/etc
From there you can catch the request and reply or adapt accordingly on your server side.
Maybe this Framework can help you to speed up the API dev in PHP. Lumen can do that trick.
You can follow this tutorial here for a fast API development with it.

Make Android Quiz Multiplayer

I have a Quiz App for Android, it has the API made in php.
It run good for one player, but I need to implement a multiplayer option, my idea is that one user send invitation to a friend, then this friend accept her invitation and the two mobiles start to the same time.
I'm googling and I know that I've to use a room of Google API, but is it true that I have to pay $ 25 to access GCM API?
For can access to API GCM credentials i have use this console (https://play.google.com/apps/publish/signup/) and make developer account...
It's okay? or i don' t understood well?
If i understood well, how can i implement the service that create a Room, i want say, When can i start googling?, if i didn't undestood well, could you explain to me how do?
Please a need help, i'm losing on this theme :(
If you're trying to access Google Play Developer Console, where you can Publish or Manage your apps, you need to pay a one-time fee of $25.
The calls to the Google Play Games Services are free. Since you seem to be creating a real-time multiplayer, check the Quick Game option for Android. However, if you're going to implement REST calls they have the Get Started with Play Games Services for Web guide.

fetching android app's information in PHP

I've been looking for some mechanism through which I can fetch android app's information such as app's ID in market, it's category, pricing, its icon and likewise from Google Play. I know there's a facility for App store for iOS, in which we can fetch app's information through URL below, which returns us back JSON of it:
http://itunes.apple.com/search?media=software&term=[query_word]
I need same for Android Market. Is there any URL for doing the same?
thanks in advance.
Here is Android Market API ported to PHP:
https://github.com/splitfeed/android-market-api-php

Is it Possible to get itunes like xml/json data from android market for each App

Itunes provide URL or all apps in App-store like to get details in JSON/XML Format
http://itunes.apple.com/lookup?id=[appid]
There is no any API for android market i have got online. i tried to get details from these html pages using java script by fetching android market query
https://market.android.com/details?id=com.[companyname].[app name]
but it is not getting fetch all the relevant data as iTunes. Is there any way i can fetch all data from android market app page html code or any API available for this?
May be it's help to you http://code.google.com/p/android-market-api/
By the way, last rumors, Google has renamed Android Market to Google Play.
To expand on devzorg's answer, - yes http://code.google.com/p/android-market-api/ will give you the application data you seek. And no - the format isn't (quite) valid JSON, although it is close afaik. The example snippet below (from an AppsResponse using the Android Market Library) won't pass JSON validation on jsonlint.com until you add quotes to all the variables and a set of external parens.
app {
id: "v2:com.geodesic.munduTV:1:30818"
title: "Mundu TV- Mobile TV, Live TV"
appType: APPLICATION
creator: "Geodesic"
version: "3.4.4"
rating: "3.6129606"
ratingsCount: 2253
..
}
Unfortunately Google Play (previously known as Android Market) does not expose an API like the Apple App Store, officially named iTunes Search API.
To get the data you need, you could develop your own HTML crawler, parse the page and extract the app meta-data you need. This topic has been covered in other questions, for instance here.
If you don't want to implement all that by yourself, you could use a third-party service to access Android apps meta-data through a JSON-based API.
For instance, 42matters.com (the company I work for) offers an API for both Android and iOS, here more details:
https://42matters.com/app-market-data
The endpoints range from "lookup" (to get one app's meta-data, probably what you need) to "search", but we also expose "rank history" and other stats from the leading app stores. We have extensive documentation for all supported features, you find them in the left panel: https://42matters.com/docs/overview
I hope this helps, otherwise feel free to get in touch with me. I know this industry quite well and can point you in the right direction.
Regards,
Andrea

Categories