Search found 17 matches

Go to advanced search

by Nathan Friend
Mon Jul 20, 2020 12:56 pm
Forum: Issues
Topic: How to check if REST service response is empty?
Replies: 5
Views: 917
 
Jump to post

How to check if REST service response is empty?

photo_reference"" : ""CnRoAAAA8fKvfU3e_XzU5HK2-6h8bgpcZSyOlcpUGzE_o85f6SMmaVEvdi4O8zx2hnfoTkWvA4SKDYFhKmOqyquCthtAg-SdTXbgwnXwh5Y8H1547rLYswUAshGQSNsMRLDF1ZSiJpYco0JaKmAEeszvLilV0xIQLsgocTlvzqdKQInsJLMGaBoUVF9bMeyUFSSA4jAyzZ5XIDb56do""

by Nathan Friend
Thu May 29, 2014 4:15 pm
Forum: Issues
Topic: How to create links to Apple and Android App Ratings within an application?
Replies: 3
Views: 690
 
Jump to post

How to create links to Apple and Android App Ratings within an application?

Is it possible to create links that allow users to rate an application on the App Store and Google Play, without leaving the application? Most applications I have used have this functionality but I am not sure how to accomplish this with Appery.

by Nathan Friend
Tue Feb 25, 2014 3:31 pm
Forum: Issues
Topic: How to setup google mobile analytics
Replies: 5
Views: 862
 
Jump to post

How to setup google mobile analytics

Unfortunately that post is not very helpful to me. Could you please explain how I would include the standard ga script to use conventional analytics until the next release?

by Nathan Friend
Tue Feb 25, 2014 2:53 pm
Forum: Issues
Topic: How to setup google mobile analytics
Replies: 5
Views: 862
 
Jump to post

How to setup google mobile analytics

Could you please explain to me the correct approach to including Google mobile analytics into applications. Is there a way to include the google sdks for both IOS and Android?

by Nathan Friend
Tue Feb 11, 2014 5:52 pm
Forum: Issues
Topic: Trouble with google places api when using app in browser.
Replies: 4
Views: 947
 
Jump to post

Trouble with google places api when using app in browser.

The error displays in the browser console.

by Nathan Friend
Tue Feb 11, 2014 5:34 pm
Forum: Issues
Topic: Trouble with google places api when using app in browser.
Replies: 4
Views: 947
 
Jump to post

Trouble with google places api when using app in browser.

When sending a request to the Google Places Api and setting the data type to jsonp the response returns data but I get an unexpected token : error when trying to view in the browser. Any suggestions.

by Nathan Friend
Tue Feb 04, 2014 9:48 pm
Forum: Issues
Topic: How to check if REST Service results are empty, the proper way.
Replies: 7
Views: 1624
 
Jump to post

How to check if REST Service results are empty, the proper way.

To check if the response from a REST service request is empty you need to use two different methods. You can not be sure that a call to (data.length == 0) will not fail. The most valid way to check the response is to also check if it is null. In it's simplest form, you would want to do the following...
by Nathan Friend
Tue Feb 04, 2014 7:12 pm
Forum: Issues
Topic: How to check if REST service response is empty?
Replies: 5
Views: 917
 
Jump to post

How to check if REST service response is empty?

Okay, I realize what I was doing wrong.

I had to target the results data directly like this.

if(data.status == 'ZERO_RESULTS'){
// do something....
}

by Nathan Friend
Tue Feb 04, 2014 6:41 pm
Forum: Issues
Topic: How to check if REST service response is empty?
Replies: 5
Views: 917
 
Jump to post

How to check if REST service response is empty?

This is what the response looks like when it has no records.

{

Code: Select all

"html_attributions" : [ 

 ], 

"results" : [ 

 ], 

"status" : "ZERO_RESULTS" 

}

by Nathan Friend
Tue Feb 04, 2014 4:53 pm
Forum: Issues
Topic: How to check if REST service response is empty?
Replies: 5
Views: 917
 
Jump to post

How to check if REST service response is empty?

I need to know how to check if a Rest Service response is empty. I found another post on here that said to use if(data.length == 0){} but that does not seem to work for me. Is there something I am missing?

Go to advanced search