Ibm worklight apis on each page of multipage hybrid application - ibm-mobilefirst

Can we access the api of ibm worklight on each page of multipage hybrid application..Just like we can access cordova apis in phonegap by referencing it on each page..is there any thing of that sort in ibm worklight for worklight json storage api access on each page? is there any workaround by which i would be able to access the json storage on each page

IBM Mulitpage applications are all processed in One Page HTML via,
Any Framworks like JqueryMobile,
Or via Loading the content into the index.html Page via .load() like Api's.
So you will be able to access all the Worklight and also Cordova API's in your App, since in both the ways we use single HTML page.
Information Regarding Multipage Applications

Related

Planting an Iframe as Aura component to show an external system that receives information from Salesforce API using oAuth web server flow

I have built a web app for our sales team.
The web app is currently using oAuth web server flow in order to authenticate with Salesforce.
Everything is working fine when running it on a separate tab.
We recently wanted to add some functionality from within Salesforce specific objects and display information from our web app.
So I've built an aura component displaying an Iframe with the URL from our web app.
Unfortunately, it crashes with a console error
Refused to frame 'https://***.my.salesforce.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
So I went to Salesforce's login page and indeed, there is a policy header that prevents it from being loaded from within an Iframe.
What is the correct way to authenticate the user with Salesforce in this situation?
Thank you very much
If you are calling a web app inside of an Iframe(Aura component) it would require the Salesforce domain calling it to be whitelisted in the web app.

Social Sharing plugin for Ionic 4 for web browser

do you know of Social Sharing plugins that works with Ionic 4 when run on the browser? Most are for mobile so I'm stuck
Social Share via web will be constrained by the available API and by the way you implement meta tags handling in your application. Here is web API based implementation that yo can use or learn from:
https://github.com/peterpeterparker/web-social-share

Social Business Toolkit: Sametime chat only with local installed Sametime Client possible?

I'm using SBT SDK on a XPage.
After mastering a few traps at the beginning it works fine.
Livenames are properly displayed.
But now a got another problem.
If you click on a available person, a context menu is displayed, where you can choose 'CHAT' or 'VCARD'.
If I click on CHAT a URL like this ist called:
http://localhost:59449/stwebapi/loggedin?jsonp=stproxy.connect.callback.setAvailable&wait=true&time=1407834968761&fqdn=sametime.lotus.com
I found out that you have to install Sametime Connect Client locally at every computer, because it is providing a small webserver at port 59449.
That's impossible because I want to use Sametime on a public website.
I'm pretty sure that there is another way.
Somebody an idea?
thanks
Marcus
#user2776693 - There are two ways:
1 - using the Sametime Local Web API
The local web api uses a configurable port (the default is mentioned above), to communicate back and forth from a web site which embeds or calls the configurable port using jsonp, meaning the javascript of the site wraps the sametime calls.
2 - using the Sametime Web Chat/Web Proxy
It means that the Sametime Web Chat is embedded as JavaScript on the page, and loaded using the appropriate JS libraries, and can have some pretty advanced features. There is a demo site off of greenhouse.lotus.com, and you can sign up for an account on that site.
you can download the sdk, and find many examples of using the local web api and web chat.
http://www14.software.ibm.com/webapp/download/nochargesearch.jsp?q0=&k=ALL&S_TACT=104CBW71&status=Active&b=Lotus&sr=1&q=sametime+sdk&ibm-search=Search
Download Version 9.0 IFR1
Extract with Zip
Go to Examples and samples

Put link to my site to google+ page related to my site via app related to that page

I have the my own application in google api.
and google+page for this application in https://cloud.google.com/console
Is it possible to publish any links to my website by the google-api on google+page wall?
The short answer is no.
While there is a Pages API that supports this functionality, currently publishing sites like HoutSuite have access.

Can I access the BlackBerry Javascript API from a webpage?

Would it be possible to, after gaining the user's permission, access the javascript API on BlackBerry devices from a mobile webapp? Sort of in the same way you can request permission from a user to access their Facebook information?
I know it's possible to create a native app in HTML5+JavaScript using WebWorks and gain access to it there, but for the solution we're building asking the user to download an app would be over-kill.
No, the stock BlackBerry browser won't allow you to access any WebWorks extensions. Javascript extensions need to be explicitly loaded by a native (Java) application into the BrowserField.
This is probably a security feature.