Posts by Amin Mousavi

Show threads by Amin Mousavi
142 posts found, page 3 of 10

Amin Mousavi (In thread: Change the language direction of the app)
Hi David,
I have used "App.TextDirection" in my app and on switching to to RTL languages it takes care of all except three parts. Labels that are inside containers, Alert Boxes and message boxes. In these three every thing remains LRT even after changing App.TextDirection to RTL
Any help on how implement text direction on these is much appreciated

Amin Mousavi (In thread: iOS problem with touch/click)
Hi David,
Thanks a lot for your great help as always. Moved the codes in the click events of all the buttons and images into functions and called the functions in the event listeners as you instructed and now it works like a charm in iOS with magnifying glass off. Your support is extraordinary David, I AM VERY GRATEFUL. There were only one thing, it was doubling the clicks so we fixed it with below inside each event:

Amin Mousavi (In thread: iOS problem with touch/click)
Hi David,
I quote Cordova (https://cordova.apache.org/docs/en/latest/config_ref/) "Suppresses3DTouchGesture" is "set to true to avoid 3D Touch capable iOS devices rendering a magnifying glass widget when the user applies force while longpressing the webview. Test your app thoroughly since this disables onclick handlers, but plays nice with ontouchend. If this setting is true, SuppressesLongPressGesture will effectively be true as well."
Our ios app users were complaining about once in a while magnifying glass opening up unwanted and we did not needed it any where, so we disabled it. It works fine with our Cordova app but causes issues in AB parts.

Amin Mousavi (In thread: iOS problem with touch/click)
Hi David,
in config.xml causes issues with the onclick event. In my case with the app I build in AB it causes the event to only respond to a certain real fast touch event. But in my cordova app it behaves normally with .on('touchstart click', function (event). Is there anyway I could do the same with AB?
Appreciate your advice very much

Amin Mousavi (In thread: Combining a phonegap/cordova app with AB app)
Hi David,
As always you saved the day, that was our problem. "The storage event is only triggered when a window other than itself makes the changes." Now the AB app that is running withing an iFrame can demand ad from parent Cordova app with no problem and no risk of violating Google instructions :). THANKS A MILLION

Amin Mousavi (In thread: Combining a phonegap/cordova app with AB app)
Hi David,
In combining our AB app with our Cordova app we ran into yet another unexpected problem we could not solve so far. We need to load some ad in the AB piece that is not a big deal but Googles has prohibited opening ads in iFrames! I know why they have done it and I know we do not manipulate the ad but they ban accounts with no explanation so it is not a risk I am willing to take. So first thing we could think of was to turn a local storage flag into 1 in the AB part that is running in the iFrame and put on an event listener in its index.html like below to read it into a message for its Cordova parent app. We added the below part to Cordova app to read the message from the AB iFrame and display the ad on AB demand. But no success so far Any advice is greatly appreciated.

Amin Mousavi (In thread: iOS problem with touch/click)
Hi David,
I have recently updated my AB, Cordova ... Any how, one of our apps that you have already seen (https://lingolish.com/global-leaderboard-tips.html) does not respond to touch/clicks in iOS. We can scroll up and down in report control but can not switch between tabs. If we touch an element and let go very very quickly it picks it up otherwise, nothing. Everything works fine in Android.
Tried everything came to mind, appreciate any advice.

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Thanks David, I am currently using the AdMob plugin for this project but since the AdMob Javascript was very simple to use, will switch to it for the next projects. Thanks a lot David for updating it :)

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Hi David,
That is exactly what I have done. Thanks for your extraordinary support :)

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Figured it out, I could put event listener any where, it was a missing bracket :) should be:"$(document).on('onAdPresent', function(e){XYZ})" I had missed the bracket at the end and were questioning the code's place :D

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Hi David,
Indeed, documents are life savers! I have another question though! in AdMob Javasript plugin, you have created a few functions to respond to "ad present event", "ad fail event" etc. I was wondering where in AB, JS event listeners could be implemented? Nearly anywhere I put "$(document).on('onAdPresent', function(e){XYZ}" it throws an error. I appreciate any hint on that.

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Hi David,
Thanks for your help. I actually noticed last night that I can not call plugin functions at "ready". I also added ad-mob plugin by specifying the version I need at custom plugins "cordova-plugin-admobpro --save --variable PLAY_SERVICES_VERSION=16.0.0" . In addition to that, to add ad-mob plugin, "Google Play Services" also has to be added to the Android SDK. Got it running and the functions I have included at the first post work like a charm in case some one likes to use them. Thanks a lot for your assistance, it is always very much appreciated :)

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Hi David,
As suggested I am trying to add the Admob plugin and use its functions directly. However I am struggling with how a cordova plugin could be added to an AB project. Similar to the example provided, at "custom plugins" I tried "cordova-plugin-admob", "https://github.com/floatinghotpot/cordova-admob-pro", "https://github.com/floatinghotpot/cordova-admob-pro.git" and ""cordova-plugin-admobpro"" and all either broke the app, broke build or caused error "Admob not defined" in the app.
Any advice is greatly appreciated.

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Hi David,
We have used Admob pro plugin in a Cordova app before. This delay is a usual thing if you go directly for displaying the ad before buffering it. So instead if showing the ad directly, if you use AdMob.prepareInterstitial earlier and then use AdMob.showInterstitial() when and where you need it, the ad appears very quickly.
I have tried the ad mob sample, it works, but the functions are limited, in my case here it lacks the prepare function. Internet speed could be a factor indeed, and because the app users could have any internet speed we should definitely load the ad beforehand otherwise ads become very annoying, more annoying that what they already are.
I suspect the event listener not being handled correctly as the reason, I am preparing the ad, but to show it I am not handling events well. So my question is, is there any function like "AdMob.prepareInterstitial" in the AB Admob plugin that I can use?
I leave my functions below, incase they ring a bell:

Amin Mousavi (In thread: Usage of the Cordova AdMob plugin in our apps)
Hi David,
I was trying to use the Admob plugin included in AB. I got it running quickly however it takes a second or two any time it loads interstitial ad, which disrupts the flow of the app. To overcome that, instead of AB functions, I used the JS functions available for the admob plugin to prepare the ad before displaying it. I managed to prepare it but for showing it, it throws error that by tracking it in chrome inspect, led me to this: So I wonder, is there a way that I can prepare ads in AB without using the JS functions to avoid the errors?
I appreciate any assistance on this a lot!

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.