Phonegap/Cordova facebook plugin not working on version 3.0 - facebook

Tried to install facebook plugin with Cordova 3.0 but it's not working. I tried using various branches which seem updated but none found is working. At least with the automated installer.
Is there a version of this plugin ported to Cordova 3.0 ?

I found a branch of the plugin that is working(almost) with the new plugin architecture in 3.0. The branch is located here. Plugman does not work so you have to manually install it. After installation you need to remove the .api in ConnectPlugin.java package names:
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.PluginResult;

Related

I am having this error in flutter while using google map through dependency map_view kindly help me

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ':map_view' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50
Your gradle plugin version that is supported in your project is 1.3.10 and higher, the plugin you are trying to install is using gradle 1.2.50 there for not supported. I suggest you find another plugin since the only map view plugin i found states that is discontinued. I suggest when you pick a plugin to use to check how often it get updated and when the last update happent.

In flutter when I am trying to run project it is giving error

Pease help me!, I am new to flutter I am importing a project and when I try to run it is giving exception
/simple_permissions-0.1.9/android/src/main/java/com/ethras/simplepermissions/SimplePermissionsPlugin.java:9: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
My project is already compatible with androidX, I have tried package get and upgrade package but nothing happens, I have got the similar problem
When you migrate a flutter app to AndroidX, all the plugins the app depends on should also support AndroidX else your app build will fail and this is what is happening here.
Even though you have migrated your project to AndroidX, the simple-permissions plugin has not been migrated to AndroidX yet and this is what is causing the issue.
Below are the options you have in this case -
1. User the permission_handler plugin instead of simple-permissions.
The permission_handler plugin is a much more frequently updated plugin which has already been migrated to AndroidX. Here is the link to the plugin.
2. Migrate simple-permissions to AndroidX yourself
If you strictly want to use simple-permissions, you can clone the git repo and manually migrate the plugin to AndroidX and use the plugin via git url inside your pubspec.yaml. Details for migrating plugins to AndroidX can be found here.
You can use the plugin from git url in the following way inside you pubspec.yaml
dependencies:
plugin1:
git:
url: git://github.com/flutter/plugin1.git
//Your repo url goes in place of this url
3. Avoid using AndroidX altogether in you app.
You can force your app to use the older support libraries if you do not wish to perform the above two steps, but by doing this you will need to downgrade all your plugins to versions which do not use AndroidX, which is not the ideal solution.
More about this here.
Hope this helps!

Native HTTP not working after adding /ngx library in IONIC

earlier it was working after i created new project using "ionic start Sample blank --v2" native http is not working
what is your "#ionic-native/http" version ? / you can check and change version from package.json
I'm using "#ionic-native/http": "^4.10.0" and its stable. You can try to downgrade this version.
don't forget npm install after the change in package.json

Redux-form-material-ui - Can't resolve 'material-ui/Radio'

I have migrated to the upcoming version (v1) of material-UI, and I installed v1 alongside the current version according to the recommendation:
yarn add material-ui#latest
yarn add material-ui-next#npm:material-ui#next
When I try to use redux-form and use the package redux-form-material-ui to connect the components, it searches for the material-UI components in "material-ui" folder, which gives an error:
Error: Can't resolve 'material-ui/Radio' in 'C:\path\to\redux-form-material-ui\lib'
But I import Radio from material-ui-next/Radio
So it looks for it in the wrong version.
How can I make this work? Should I uninstall the current version and install "next" as "material-ui" instead?
Here is what is installed:
"material-ui": "^0.20.0",
"material-ui-next": "npm:material-ui#next",
"redux-form-material-ui": "^5.0.0-beta.2",
"redux-form": "^7.3.0",
My way of getting around the problem was to uninstall both material UI packages and then install the v1 as "material-ui" , and the old one as "material-ui-old":
"material-ui": "npm:material-ui#next",
"material-ui-old": "npm:material-ui"
I had to change all the imports in the project.
But now it finds the 'material-ui/Radio'.

Phonegap 2.7 iPhone Torch fail

I need a torch on my phonegap project (Cordova 2.7.0, xcode 4.6.2), but I cannot activate it on iPhone. I've tested 2 solutions:
The shazron plugin, but it refuses to compile with a lot of errors, even using it's javacript upgrade (include in next solution)
Tom Schreck's upgrade. It did't throw any error, but it fails too. I've tested it on older versions of phonegap, such 2.2.0 with same results.
Any suggestion??
Thanks!
The Tom's solution has erros in the demo file. At least, to toggle the torch you can use window.plugins.torch.toggle(); but it only works in Cordova 2.2.0. ¿Any update for Cordova 2.7.0?