Lukket

Android post to server intent when hitting geofence

Since it's not possible for Android to run javascript in a background service, I'd like to propose the following extra configuration.

I was thinking to use the TransitionReceiver ([url removed, login to view]) to post to a server and only trigger the notification when the server responds with true. This can be true/false, 1/0, {"notification":true} or whatever is semantically correct and in line with this project. Of course there might be a better solution than the TransitionReceiver, that's up to the developer.

Additionally I'd like to be able to post extra data when adding the geofence. This extra data is optional, parsed with [url removed, login to view] and also posted to the server. A possible way to add the geofence could be (see "post" object):

[url removed, login to view]({

id: String, //A unique identifier of geofence

latitude: Number, //Geo latitude of geofence

longitude: Number, //Geo longitude of geofence

radius: Number, //Radius of geofence in meters

transitionType: Number, //Type of transition 1 - Enter, 2 - Exit, 3 - Both

notification: { //Notification object

id: Number, //optional should be integer, id of notification

title: String, //Title of notification

text: String, //Text of notification

smallIcon: String, //Small icon showed in notification area, only res URI

icon: String, //icon showed in notification drawer

openAppOnClick: Boolean,//is main app activity should be opened after clicking on notification

vibration: [Integer], //Optional vibration pattern - see description

data: Object //Custom object associated with notification

},

post: { //Post to server in background when hitting geofence (optional, Android only)

url: String, //The url which is posted to

timeout: Integer, //Defaults to 0. Milliseconds the Java code waits with executing the notification after the post is done (if server responded with true)

notificationOnError: Boolean, //Defaults to false. Should the notification be triggered when the server responds with an error (404, 500)?

data: Object //Optional custom object associated with post, parsed with [url removed, login to view] and sent to server with "data" parameter

}

}).then(function () {

[url removed, login to view]('Geofence successfully added');

}, function (reason) {

[url removed, login to view]('Adding geofence failed', reason);

});

Required skills: a little bit hybrid development (Js, Cordova, Ionic/Phonegap) and Java

Færdigheder: Android, Ionic Framework, Java

Se mere: client server android application source code java, java code backup android contacts, convert android code java work, code generator android java, quiz source code java android, code java gallery android, car racing game code java android, interface android existing java, quiz java android code project, modify android existing code, flash media server camera android, server chat android, chat server client android, rtmp server connection android, java code port android, server multiplayer android game, java android source code image detection, stream server iphone android, server environment android, android upload http post, android upload http post php, upload file using http post android, share data server client android, server settings proces form mail post, server client android

Om arbejdsgiveren:
( 0 bedømmelser ) Porvorim, India

Projekt-ID: #12538387

8 freelancere byder i gennemsnit ₹17361 for dette job

FutureTechno1

Hi there, I’d like to be considered for your job position. I’m a Software Developer with a strong background developing android & web application. I can turn your requirement in a way that represents your brand and Mere

₹41111 INR in 3 dage
(13 bedømmelser)
5.2
rkinfotekh

*-->Dear Hiring Manager, WE ARE HAPPY TO WORK ON THIS PROJECT. PLEASE CHECK OUR WORK. We have 10 years experience with various technical fields like Software Architecture,Product Development,Algorithm Trading, Thr Mere

₹40000 INR in 32 dage
(17 bedømmelser)
5.0
myappsdevelopers

Hello Hiring Manager, I read your job descriptions carefully, I am very interesting in your job. I have developed apps such as Social networking & lifestyle(Tinder style dating, chatting, sharing), Food & drink(R Mere

₹16666 INR in 15 dage
(15 bedømmelser)
4.0
dotforcetech

Dear Sir/Madam I have been in this industry for 5 years, i have an talented team and such jobs are our daily practice. I can complete your project on time and within your budget. I have worked on similar projects Mere

₹5000 INR in 3 dage
(6 bedømmelser)
2.8
readypixels

I am very interested in the project that you advertised. Because I provide you the unique ability to predict a customer's needs I believe that I would be a great asset to you, with my years of experience and I believe Mere

₹7777 INR in 30 dage
(0 bedømmelser)
0.0
technocore2

Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project befor Mere

₹8333 INR in 6 dage
(0 bedømmelser)
0.0
techarchs2

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c Mere

₹8333 INR in 6 dage
(0 bedømmelser)
0.0
rojina12345

I have already done inhouse project of my company related to geofencing using the data from server..so i can complete this project in time

₹11111 INR in 6 dage
(0 bedømmelser)
0.0
srinathvidapu

A proposal has not yet been provided

₹8888 INR in 2 dage
(0 bedømmelser)
0.0
₹7777 INR in 3 dage
(0 bedømmelser)
0.0