Display Name is not shown on Device screen of MobileFirst Operations Console.
I'm using UserLogin adapter which has no difference from the sample.
Also, I've already checked JSON object response as the below in device log(X is just an example for security reason):
Response Content : {"successes":{"UserLogin":{"user":{"id":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","displayName":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","authenticatedAt":1468543841812,"authenticatedBy":"UserLogin","attributes":{}}},"clockSynchronization":{"serverTimeStamp":1468543842630}}}
How can I see Display Name on Device screen of MobileFirst Operations Console?
FYI, I can see User ID there.
* Version Infomation:
cordova 6.2.0
cordova-plugin-mfp 8.0.2016062815
cordova-plugin-mfp-push 8.0.2016070407
In addition, I've already had the below info but I can't find the solution...
http://www.ibm.com/support/knowledgecenter/ja/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refjava-mfp-server/html/com/ibm/mfp/server/registration/external/model/DeviceData.html
It looks like you have not set the display name for the clients.
Please use API "setDeviceDisplayName" to set display name. You can find more information about the API in our documentation.
For Cordova : http://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refjavascript-client/html/WL.Client.html#setDeviceDisplayName
For Android : http://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refjava-worklight-android-native/html/com/worklight/wlclient/api/WLClient.html#setDeviceDisplayName%28java.lang.String,%20WLRequestListener%29
For iOS : http://www.ibm.com/support/knowledgecenter/en/SSHS8R_8.0.0/com.ibm.worklight.apiref.doc/html/refobjc-worklight-ios/html/Classes/WLClient.html#//api/name/setDeviceDisplayName:WithCompletionHandler:
Related
Here is the image of the asset information widget, which can add a property called c8y_Address
I would like my device to show their address information on the asset information widget, but I don't really know how to upload these properties to a device.
I am using MQTT. So I created a customised SMQRT Template, which is a POST inventory method 001,<region>,<street>,<territory>. And then I publish it using client.publish('s/uc/TemplateName',001,${region},${address},${territory});. But it doesn't work.
I'm just wondering how can we use API to add the address information as a property of a device?
Thank you.
POST would create a new object. I guess what you want to do is updating the device with this properties. So a PUT template would be the correct choice.
Note that the preview shown in the UI currently is incorrect for PUT templates.
It says:
999,<c8y_Address.region>,<c8y_Address.street>,<c8y_Address.territory>
but it actually needs to be (like described in the SmartREST 2.0 guide):
999,<externalId>,<c8y_Address.region>,<c8y_Address.street>,<c8y_Address.territory>
The externalId needs to be from the device you want to update (if you only have a single device without children it would be what you also use as MQTT clientId).
In Titanium there is the following property:
Titanium.Geolocation.lastGeolocation
As explained in this doc: http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Geolocation
It is described as follows:
JSON representation of the last geolocation received.
LastEvent is the JSON version of the last geolocation sent by the OS.
This does not trigger a geolocation attempt, nor wait for such. If no
geolocation has happened, this value may be null or undefined.
My question is when it says "lastGeolocation", does it mean the last geolocation recieved my the device ever (e.g. The app could have got a location from another app such as Google Maps), or just the last geolocation received by the app?
I believe it should be the device's last location irrespective to which app requested for it.
It is easily checkable with following steps:
Get a fresh current location from the Titanium app & check the value of lastLocation.
Do a location request from another place with different app like Google Maps.
Then check it again in Titanium app.
I'm currently developing backend for pass generation. I have created sample pass using all guidelines but it doesn't open up on Iphone. Is there any way to debug a problem, cause right now Safari is just showing message - "Safari could not download file".
Here is a link with sample pass:
"https://distributor-test.azurewebsites.net/api/v1/pass"
Thanks for any advance!
According to the errors logged in the console, you have more than one field with an ID of "front-primary". Each field must have a unique ID. Fix the names of the field and try again.
If you have a Mac, you can open the output from an iPhone using XCode or the syslog. This helps pinpoint issues with passes.
I am building some software that requires me to display the icons of different apps, and possible save them on a database so I can look it up on demand?
I know you can get the url scheme but is that all you can do with it ? Or is there a way to get the app icons ?
For instance is there a way to get the icon of angry birds via an API call to the IOS system ?
In a non-jailbroken iPhone, you cannot get it from the OS.
You need to query the iTunes service from Apple to get this info ex:
http://itunes.apple.com/lookup?id=284882215
See this SO post for more detail
Get other application icon image in my Application
A Facebook app is setup with iOS native app enabled with bundle id and App Store Id of another app.
Following are possible in the current scenario.
1.Sending an app request to a friend,
2.The request badge appears in the friend's Facebook,
3. And clicking on the request launches my app.
This was the link i referred to implement this.
https://developers.facebook.com/docs/howtos/send-requests-using-ios-sdk/#protip3
I am supposed to get a NSURL from these functions
– application:openURL:sourceApplication:annotation:
OR
– application:handleOpenURL:
and the expected format is as follows.
fb[APP_ID]://authorize#expires_in=[ACCESS_TOKEN_EXPIRATION]
&access_token=[USER_ACCESS_TOKEN]
&target_url=https://apps.facebook.com/[APP_NAME_SPACE]/?request_ids=
[COMMA_SEPARATED_REQUESTIDs]&ref=notif&app_request_type=user_to_user
Here the request_ids contains The id of app request send, and which can be used to get the data attached to the App Request.
Now my issue is that, I am not getting the NSURL in expected form, instead I get the following format. So I am unable to find or use the request_ids.
fb[APP_ID]://authorize#expires_in=[ACCESS_TOKEN_EXPIRATION]
&access_token=[USER_ACCESS_TOKEN]
&target_url=https://apps.facebook.com/application.php?id=442634372448098