I need to know the structure of an IBM MobileFirst hybrid mobile application using Ionic 2. I found a tutorial witch explain that but using Ionic 1, and I try to apply it with the new version but node_modules generates always compilation errors in Eclipse.
tutorial link
Hm I donāt know a whole lot about MobileFirst platform, but maybe @raymondcamden would be able to shed some light here?
So - I havenāt tried Ionic2 with MF yet, just Ionic1, but I have a few suggestions.
1 - Stop using Eclipse. Instead, use the command line to work with the app. Please see my blog post here (https://developer.ibm.com/mobilefirstplatform/2015/09/15/hybrid-mobile-development-and-mobilefirst-7-1-increasing-the-awesome/) where I describe using the CLI to work with the build.
2 - Related to that blog post, once you have a āvirginā Ionic2 project building right, you should then look into integrating the MF init stuff. Iām still real new to Ionic2, but you should be able to tie into the bootstrap code to handle connecting to MF.
Iāll definitely look into documenting this - but not till Ionic2 is in RC (or released).
As Ionic2 is still in beta, MFP with Ionic2 is still in cooking stage.
Will keep you posted once there is something solid.
Hi @raymondcamden, Iām new to MobileFirst, could you please talk about the benefits of using MobileFirst+Ionic 2 instead of just using the Ionic CLI? Thanks in advance!
It isnāt either/or per se. MF provides back end services to help you create a better mobile application. I donāt want to āspamā the board here with the benefits of MF and all that (I used to be an evangelist for the product, but now Iām focused on Node stuff), so Iād say check out the web site and see if the benefits make sense to you. But again - it doesnāt āreplaceā Ionic per se.
Hi,
Ionic 1.3.1 version not working in ibm mobile first 7.1 but āversionā: ā1.2.4ā, working please let me know what is the issue
Sorry not sure what to tell you. If you see an issue on the Ionic side, file a bug, if you see it on the MFP side, file a bug there. I donāt work with MobileFirst anymore.
Please check attached screen shot for your reference. if i use ionic 1.3.1 i am error like that . can you please help on this issue
Thanks for your reply. We roughly went through the MF stuff and didnāt find too many features that add extra benefits than using Ionic 2 itself. Will keep digging deeper though.
Issue is that MF 7.1 is not compatible with angular 1.5. So MFP 7.1 is constrained to ionic 1.2.4. It is also constrained to cordova versions Android (3.6.4) iOS (3.7).
Hi,
Here is a sample I did which shows you how to combine MFP7.1 and Ionic2.
Best Regards,
Ishai Borovoy
Hi,
do we have any sample for MFP8.0 and ionic 2? Because MFP8.0 is latest one and I want to integrate it into my ionic 2 project.
Thanks in advance.
Sure,
Hi,
While installing ācordova plugin add cordova-plugin-mfpā I am getting error āFailed to install ācordova-plugin-mfpā:CordovaError: Plugin doesnāt support this projectās cordova-android version. cordova-android: 6.0.0, failed version requirement: >=5.1.1 <6ā . I tried downgrading cordova version but still cordova version is showing 6.0.0. Because of this I am stuck , I am not able to do further changes. Please can you help me?
Check that your cordova-android: >= 5.1.1 and < 6.0
See http://stackoverflow.com/questions/22152016/how-do-you-use-the-cordorva-cli-to-add-a-specific-version-of-the-cordova-framewor it might help or maybe this one http://stackoverflow.com/questions/21391431/can-i-install-a-previous-version-of-a-plugin-using-the-cordova-plugin-add-comman
Hi,
Thanks for quick rplyā¦It workedā¦
Hi,
I am sending MobileFirst Analytics through ionic 2 app. But on MFP analytics console in message tab it showing InternalRequestSender Outbound. The key which I have send is not appearing in MFP console. I am using the below link for analytics reference.
https://mobilefirstplatform.ibmcloud.com/labs/developers/8.0/advancedmessenger/
I have tried sending logs using below methods
WL.Logger.error('MFPInitComplete: '+āSample messageā);
WL.Logger.send();
WL.Analytics.log({'Sample Key' : 'Sample Message'});
WL.Analytics.send();
Could you please help me in this issue?
Hi,
Am trying with ionic 2 + IBM MF 8
but inside the self.renderer.listenGlobal(ādocumentā, āmfpjsloadedā, () => {
/// WL is undefined here if i add 5-10 sec timeout then i can see the WL
});
Please help