MOB-19785 | Update Demo App #3
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before contributing, make sure you have:
🔴 [Mandatory] Description
This PR updates the CordovaDemo application to match feature parity with ReactNativeDemo by upgrading to insider-cordova-plugin 3.0.2 and implementing all available SDK methods. The update includes 13 new methods across user management, events, products, smart recommendations, content optimizer, and in-app messaging features.
🔴 [Mandatory] What's the change?
Package Updates
^1.4.0→^3.0.2^10.1.2→^14.0.1^6.2.0→^8.0.0UI Enhancements
File:
www/index.htmlAdded Buttons (10 total)
User Identifiers
Smart Recommender
Mobile App Access
Content Optimizer
In-App Messages
SDK Integration
File:
www/js/index.jsNew Methods Implemented (13 total)
logoutResettingInsiderID()
Reset Insider ID on logout
signUpConfirmation()
Track user registration
setMobileAppAccess()
Control mobile app access
removeInapp()
Remove in-app messages
getSmartRecommendationWithProductIDs()
Fetch smart recommendations using product IDs
clickSmartRecommendationProduct()
Track smart recommendation product clicks
getContentOptimizerIntWithoutCache()
getContentOptimizerStringWithoutCache()
getContentOptimizerBoolWithoutCache()
Content Optimizer variable access without cache
addParameterWithStringArray()
addParameterWithNumericArray()
Event parameters with array support
setCustomAttributeWithStringArray()
setCustomAttributeWithNumericArray()
Product custom attributes with array support
Refactoring & Improvements
Smart Recommendation
getSmartRecommendationrefactored intosmartRecommendationobjecttriggerEvents()
createNewProduct()
🔴 [Mandatory] Impact Area
Scope: CordovaDemo application only
Platforms: iOS and Android
Dependencies: Cordova plugin ecosystem (android, ios, insider-cordova-plugin)
User Impact: Demo app now showcases all available SDK features from insider-cordova-plugin 3.0.2