• juhana
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 9
    Replies
Hi,

I noted in Winter 14 came support for mobile Push Notifications. But, if I create new connected app there is no option for push notifications in Mobile App Settings. It does not appear in sandbox nor in DE which were created in august. But if I create new DE now, Mobile App Settings do contain push notification settings.

So, is there something what needs to be enabled to get old sandboxes & DE's (and possibly productions?) to support push notifications ?
  • January 03, 2014
  • Like
  • 0

Hi,

 

I'm using SmartStore in hybrid offline development. In online mode, I can do queries like:

Select Id,(select Id from Events),(select Id from Contacts) from Account

 But how to do this with SmartStore using smart queries ?

 

 

 

  • November 19, 2013
  • Like
  • 0

I am developing hybrid application with Backbone and Smartsync. For now, I'm using Event objects and only its standard fields. In online mode, Event object can be created to SF and read back. But if I go to offline, only some of the Event data's are stored locally. For example; online read return 19 objects but offline smartsql query returns 10. Does the StoreCache have size limit or something else or should it automatically store all data to cache when online query finishes ?

 

Event model fieldlist:

"WhoId", "WhatId", "StartDateTime", "EndDateTime", "Subject", "Id", "Description"

 Event Collection fieldlist is the same.

 

StoreCache for Events:

app.cache = new Force.StoreCache("events");
app.cacheForOriginals = new Force.StoreCache("original-events");
return $.when(app.cache.init(), app.cacheForOriginals.init());

Offline SmartSql query:

return {type:"cache", cacheQuery:{queryType:"smart", smartSql:"SELECT {events:_soup} FROM {events}"}};

 

I think this also somehow affects to creating Events locally. Allthough I can create Event locally save succeeds and pushing it to Event Collection from where I can render its data, refreshing (new fetch) Event Collection will lose newly created Event.

 

I'm little lost now, where I should look now ?

 

  • October 23, 2013
  • Like
  • 0

I'm developing hybrid app with offline functions; without network connection data should be read from local storage.

 

I believe SmartSync should do this, but does that store data so it will be available even after rebooting the device ?

 

When starting the application, it tries to connect SF but if network is not available then the error message will be shown. Can this error message be bypassed and continue to application itself, then load data from storage ? Later if modify/create records, in (or before) sync method network connection will be checked and either update local storage or SF.

 

Is this possible or out of question ?

  • October 17, 2013
  • Like
  • 0

Hybrid app starts in ripple emulator when platform is selected to be Cordova. But when calling forcetk, ripple shows error about "com.salesforce.oauth.getAuthCredentials". So it cannot retrieve credentials.

 

Is there way to use desktop browser with ripple emulator ?

 

  • September 22, 2013
  • Like
  • 0

I have developed HTML5 app which is working just fine in browser.

 

Now I'm looking for Hybrid Remote app (android & iOS). I created connected app to SF, URL is pointing to my HTML5 app. Hybrid remote client starts fine, shows login and then goes fine to my app. Working perfectly to this stage.

 

But then, my app have logout button which redirects to /secur/logout.jsp, with browser this works as expected. With hybrid app, it logouts and shows the login screen again but if I now try login again, it opens to SF home page and not my HTML5 what I expected. Also, if I restart hybrid app, it goes straight to HTML5 app so looks like the hybrid app did not logout.

 

How I should implement the logout so it will logout the hybrid client. Can I somehow listen URL where hybrid app webview is going ?

 

  • September 18, 2013
  • Like
  • 0
I'm building an iOS hybrid mobile app by altering the AccountEditor example, using MobileSDK 2.1. It's going quite well but I've hit something odd. The sample apps have an online/offline indicator and SmartSync handles this nicely, going to the local copies of records when there's no connection and querying the server when connected. It offers to sync locally modified records when it comes back online. All very nice.

My problem is that I'm also creating records. When I create a record offline, and then go and view it offline, that specific record is returned from the query with no result.attributes while the records that were created online do have result.attributes, even when viewed offline. I have peppered the standard js with console.log(...) to find out what's going on.

Here are some excerpts:

Dumping out all the properties of result (cache query result) entry for the record added offline. Note no "attributes" property. The records created online DO have an "attributes" property.
2014-01-06 18:07:26.848 Mobile_Dev01_b[3515:70b] [LOG] 1514 _soupEntryId:7
2014-01-06 18:07:26.848 Mobile_Dev01_b[3515:70b] [LOG] 1514 Meeting__c:a0qM0000001PCduIAG
2014-01-06 18:07:26.848 Mobile_Dev01_b[3515:70b] [LOG] 1514 Id:local_1389031510806592
2014-01-06 18:07:26.848 Mobile_Dev01_b[3515:70b] [LOG] 1514 __locally_created__:true
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 type:Portfolio_Meeting__c
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 __locally_updated__:false
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 Client_Portfolio__r:[object Object]
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 __local__:true
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 _soupLastModifiedDate:1389031510814
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 Client_Portfolio__c:a0DM00000085zYyMAI
2014-01-06 18:07:26.849 Mobile_Dev01_b[3515:70b] [LOG] 1514 __locally_deleted__:false
2014-01-06 18:07:26.850 Mobile_Dev01_b[3515:70b] [LOG] 1514 Interest_Level__c:High

The error that causes the Success Callback to fail - smartsync.js Force.SObjectCollection parse method is trying to parse the result but can't:
 
2014-01-06 18:07:26.850 Mobile_Dev01_b[3515:70b] [LOG] 'undefined' is not an object (evaluating 'result.attributes.type') -[object Arguments]-

Anyone have any ideas?
Hi,

I noted in Winter 14 came support for mobile Push Notifications. But, if I create new connected app there is no option for push notifications in Mobile App Settings. It does not appear in sandbox nor in DE which were created in august. But if I create new DE now, Mobile App Settings do contain push notification settings.

So, is there something what needs to be enabled to get old sandboxes & DE's (and possibly productions?) to support push notifications ?
  • January 03, 2014
  • Like
  • 0

Hi,

 

I'm using SmartStore in hybrid offline development. In online mode, I can do queries like:

Select Id,(select Id from Events),(select Id from Contacts) from Account

 But how to do this with SmartStore using smart queries ?

 

 

 

  • November 19, 2013
  • Like
  • 0

I am developing hybrid application with Backbone and Smartsync. For now, I'm using Event objects and only its standard fields. In online mode, Event object can be created to SF and read back. But if I go to offline, only some of the Event data's are stored locally. For example; online read return 19 objects but offline smartsql query returns 10. Does the StoreCache have size limit or something else or should it automatically store all data to cache when online query finishes ?

 

Event model fieldlist:

"WhoId", "WhatId", "StartDateTime", "EndDateTime", "Subject", "Id", "Description"

 Event Collection fieldlist is the same.

 

StoreCache for Events:

app.cache = new Force.StoreCache("events");
app.cacheForOriginals = new Force.StoreCache("original-events");
return $.when(app.cache.init(), app.cacheForOriginals.init());

Offline SmartSql query:

return {type:"cache", cacheQuery:{queryType:"smart", smartSql:"SELECT {events:_soup} FROM {events}"}};

 

I think this also somehow affects to creating Events locally. Allthough I can create Event locally save succeeds and pushing it to Event Collection from where I can render its data, refreshing (new fetch) Event Collection will lose newly created Event.

 

I'm little lost now, where I should look now ?

 

  • October 23, 2013
  • Like
  • 0

Hybrid app starts in ripple emulator when platform is selected to be Cordova. But when calling forcetk, ripple shows error about "com.salesforce.oauth.getAuthCredentials". So it cannot retrieve credentials.

 

Is there way to use desktop browser with ripple emulator ?

 

  • September 22, 2013
  • Like
  • 0

I have developed HTML5 app which is working just fine in browser.

 

Now I'm looking for Hybrid Remote app (android & iOS). I created connected app to SF, URL is pointing to my HTML5 app. Hybrid remote client starts fine, shows login and then goes fine to my app. Working perfectly to this stage.

 

But then, my app have logout button which redirects to /secur/logout.jsp, with browser this works as expected. With hybrid app, it logouts and shows the login screen again but if I now try login again, it opens to SF home page and not my HTML5 what I expected. Also, if I restart hybrid app, it goes straight to HTML5 app so looks like the hybrid app did not logout.

 

How I should implement the logout so it will logout the hybrid client. Can I somehow listen URL where hybrid app webview is going ?

 

  • September 18, 2013
  • Like
  • 0