on 10-10-2021 6:24 AM
In our Ui5 application, we are using Gigya Screensets in different controllers. As per the Gigya documentation available, we are to declare all gigya related functions in one handler and call it in onGigyaServiceReady().
We are calling the Gigya WebSDK in index.html file.
Are we supposed to declare all the functions having Gigya API Calls in onGigyaServiceReady function? If not, then how do we ensure that all Gigya APIs are executed once the Gigya WebSDK is loaded.
Hi Abhishek,
"Are we supposed to declare all the functions having Gigya API Calls in onGigyaServiceReady function?
Yes, this will ensure you don't come across the "Uncaught ReferenceError: gigya is not defined" error.
In order for Gigya API calls to function correctly you need to ensure the Gigya Web SDK is loaded before making the calls.
Using onGigyaServiceReady allows you to do this.
My Example below
var onGigyaServiceReady = function () {
gigya.accounts.showScreenSet({
screenSet: screensetID + "-RegistrationLogin"
});
};
regards
Ibrahim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.