Working unity adv plugin on cordova - cordova-plugins

I tried
https://github.com/cranberrygame/cordova-plugin-ad-unityads
But I have integrated rewarded videos and its working fine, but once the video ends i cannot close, the app is just frozen.
Also followed the heyzapp tutorial, sadly no luck. heyzapp
Is there any other working unity adv plug-in for Cordova?
What did I wrong in config?

Have you tried this plugin: https://github.com/Heyzap/heyzap-cordova-extras/tree/master/heyzap-cordova-unityads
I've also pushed a new version of the main Heyzap plugin here with our newest 9.12.5 sdk: https://github.com/Heyzap/heyzap-cordova
these have been tested together personally and work properly.

Related

Unity iOS support, installation failed

I am trying to use Unity to create an iOS app. I used Unity Hub to install Unity. I then opened Unity, went to File-Build Settings. I click on iOS, and it says "No iOS module loaded", so I clicked on the "Open Download page". I downloaded UnitySetup-iOS-Support-for-Editor-2018.4.7f1 and ran it. It looks like everything is going smoothly, and right at the end I get the message in the attached screen shot.
I have tried closing Xcode and Unity. I have tried restarting my computer. I have done several Google searches, but I haven't found anything that helps. Does anyone have any ideas?
I suspect the installation path got messed up.
You have to use the Unity Hub to install additional packages.
Go to Installs, click the 3 vertical dots and select Add Modules.
I had a similar problem with tvOS support and it seems that if you don’t have Unity installed to /Applications/Unity, installing addons will fail. (I had it in /Applications/Unity-2019.4.7f1.)
I moved my Unity to /Applications/Unity, installed the addon, and then moved Unity back.
The accepted answer did not work for me.
However, what did the job (Unity 2018, Unityhub 3.4.1) was copying the installed /Applications/Unity/PlaybackEngines to the current /Applications/Unity-[2018....]/PlaybackEngines

When using Twilio iOS sdk and building Cordova app openssl crashes

I am building a cordova app for iOS and I am using Twilio Plugin with the corresponding Twilio iOS SDK.
For some reason, after calling the setup method from Twilio plugin ( which then calls native code ), the app crashes.
Here is the link of stack trace:
The exception I get is EXC_BAD_ACCESS. I know that the problem may not be in cordova because i downloaded phonekit app and it does not crashes.
https://github.com/jconst/PhoneKit
This is cordova plugin I am using:
The method I call is : Twilio.Device.setup
From there, it will execute native code which is in TCPlugin.
jefflinwood - twilio_client_phonegap
I would appreciate any insight on the topic.
Unfortunately, I am still struggling with how to make both sdks work together. I am contacting opentok support to see if the can help.
(EDITED)
Problem Solved. Here is what was going on. I was using OpenTok plugin as well in my project. OpenTok also uses openssl which conflicts with the one used by twilio ( differente version).
I partialy solved this by removing openTok. Eventually Ill need to find a way to use both plugins.
The solution is simple. Just remove libssl references from project. That way, twilio will use opentok openssl libraries.
In my case, I delete libssl from twilio folder. I was using xCode and was not that simple to exclude it from project, since There is "search libraries path" which looks for all libraries.
Then if you are using Pods, make sure to do not use Pods.config, because it will also look for libssl library.
Hope that helps!

how to add plugin without cli in cordova 3.5.0 iOS

I am not using cli for my cordova project ,i got the cordova 3.5.0 project from there site and integrated with my project.All the custom plugins created by me is working fine.But the API's like device is not accessible.I have added the CDVDevice to config.xml but still i can't able to access the device object.
So please help me to solve this problem.
In order to correctly working the Cordova requires you to have cordova_plugins.js file near the cordova.js. That file contains registration of the JS API.
The easiest part is use Plugman to install plugins inside your custom project, that way, it will handle all work on creation of cordova_plugins.js.
Official Cordova documentation for the Plugman
See the possible related answer Cordova 3.5 embedded webview with plugins where I put more insights about how you could modify cordova_plugins.js in case you desperately need this, but I would recommend you to use Plugman.

phonegap FBConnect Plugins some steps troubles

I started developing the iphone app using phonegap >>
I have used phonegap before for android app>and also fbconnect for android but for ios I am not able to configure it>> I gone through many tutorials and Questions from stackoverflow>
I am following this tutorial
https://github.com/davejohnson/phonegap-plugin-facebook-connect/
and every things goes right but the steps 11 to 14 >> and last ios URL SCHEME
thats are the steps which are confusing me aND I AM UNABLE TO COMPLETE THat steps>>
and if I compile without thats steps>>
its giving the following error>>
error: Cordova/CDV.h: No such file or directory
#Geeniewanted :: this is the screen
For 11. If you click on the top-level 'phonegapFacebookApplication' in your project navigator (with the blue x-code project icon to it's left), that should show you all the project settings on the main center window. There you will find a tab that says "Build Phases", and within that, you'll find an option to add Link binaries with Libraries. #Geeniewanted has nicely written out a solution to that above.
I should warn you though that if you're using the lastest PhoneGap Build, or Cordova, you'll notice that there isn't a Cordova.plist anymore. That is because with PhoneGap 2.3.0 they've changed that to the 'config.xml'. And so you'll have to add your plug-ins to there.
I would recommend that you follow the video tutorial from Facebook-Dev to set up your Facebook iOS SDK within x-code: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/#project
you can use the following link to use the childbrowser plugin and facebook
http://www.drewdahlman.com/meusLabs/?p=88#comment-1544
it's possible to update this to the new inappbrowser

Integrating Facebook Docset with Xcode

So I downloaded the latest 3.1 Facebook iOS sdk and under the scripts I found a build_documentation.sh which I ran. It completed and generated a com.facebook.Facebook-SDK-3_0-for-iOS.docset file. I am trying to get it to integrate nicely with XCode. I know that apple docs can create documentation that shows up in the quick help panel. My own custom documentation works great.
Does anyone know what I have to do to get the same kind of documentation integration with Facebook?
EDIT:
I tried adding the docset to the corresponding folder according to the instructions here
and restarted Xcode but it didn't work
If you install the SDK from the package you don't have to generate the docset yourself.
Go to https://developers.facebook.com/ios
Click on the Download SDK button
You can get the Facebook Documentation working with the following:
Build the Facebook Documentation with the provided shell scripts
Move the .docset to /Library/Developer/Shared/Documentation/DocSets
If it doesn't work, you may have to check, if you moved the docset to ~/Library/Developer/Shared/Documentation/DocSets. This is sometimes WRONG
Why does it work by installing the Facebook Framework directly from the .pkg?
It moves it to /Library/..., not to ~/Library/...

Resources