PhoneGap BUILD and phonegap-facebook-plugin sample - facebook

I want to use the phonegap-facebook-plugin in a PhoneGap BUILD application.
The documentation here only explains how to add the plugin into the config file but does not explain how to actually use it.
More specifically,
does anyone have experience with this plugin and PhoneGap Build or
for that matter any other plugin? Sample code?
what version of the "facebookConnectPlugin.js" should I use? (there
are several of those in the project)
during the development phase I
am testing in the browser first and then on the phone. How do I make
it work in both environments?
Thanks.

Actually, if you go here, the author has the example of the usage there.
The version you're looking at was deprecated. Use <plugin name="cordova-plugin-facebook4" source="npm" spec="1.4.0"> instead.
You have to add your localhost to Facebook app settings.

Related

can't load brother SDK to capacitor custom plug in

I have been searching all over and I have not found any good documentation in how can I create a custom ionic capacitor plug-in with an external SDK (Brother printer SDK). This SDK is located locally in my computer.
The Error I keep getting is the following.
No such module 'BRLMPrinterKit'
I'm building the plug in with
npm init #capacitor/plugin#latest
I follow the steps found in
How to embed third party framework on ionic capacitor custom plugin?
I was expecting to use the Brother printer SDK in the custom capacitor plug in. Any tip in how can I implement a custom plug in with any framework?
I don't know very well about ios plugins for ionic, but I recommend you to use this post to create the plugin step by step (I used it for android plugins):
https://devdactic.com/build-capacitor-plugin
I think you can use this other post to solve that specific issue: How to import framework into XCode project?
I know it's not the best answer, but I hope it helps.

Windows.Universal Javascript PWA app uses Edge legacy instead of Edge Chromium

Wondering what causes my PWA app to use edge 18 engine as runtime when the Edge Chromium is present on my windows machine.
Because of this I have to downgrade my Javascript target to es2016 (es6) as I compile my typescript.
I am using Aplication.Manifest and generating a package msix.
Could my Applicication.Manifest playing any part ? Or is there any way it can be changed so that the runtime uses the current version of Edge Chromium engine if at all it is possible.
Wondering you build your javascript based native apps and target a better runtime in 2022 ?
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17134.0" MaxVersionTested="10.0.18363.1139"/>
</Dependencies>
Update:
To clarify I am using appx package manifest and creating an app with a link to a PWA site.
You can take a look at this sample code from Microsoft official UWP sample using WebView2. See if this can help you. I would suggest following the official tutorial to make sure everything works fine.

How use native code in desktop flutter app?

I wanted to ask you about the desktop part of the technology.
If the documentation is about how ordinary developers can inject native code into a desktop application (WPF, Mac, Linux) like buinding or as a custom plugin or something similar
Best regards, Vadim
You have all the same options for platform code on desktop that you do on mobile:
Adding it directly to the native runner app that's created by flutter create
Writing a plugin
FFI

Updating Ionic Apps in real time

I'm a web developer, new to Ionic.But I can't find out how can I update my app on the server,like a website,and without having user redownload the app.Is there any solutions?
Thanks!
There's an available plugin you can use Cordova-hot-code-push
This plugin provides functionality to perform automatic updates of the web based content in your application.Basically, everything that is stored in www folder of your Cordova project can be updated using this plugin.
supported platforms: Android 4.0.0 or above.
iOS 7.0 or above. Xcode 7 is required.
It has a great wiki too.
Yes, as of recently there is a solution for this. Ionic calls it Ionic Deploy, and you can see the official documentation about it here.
However, one must note that this is still in Alpha version and they don't recommend it for production, but since they're very apt in shipping new features, I'm sure this will be even production ready very soon.

Worklight Facebook platform selection?

For Facbook integration in Worklight which platform should we select Android or Website
,
right now i am developing for android environment but later i will be doing for iphone and windows as well
Also were do i place the Facebook integration code in index.html(main) or in android project which is separately created ?
i am confused do reply
It looks like you are developing a Worklight-based Hybrid application, so in this case you should actually opt for the Facebook JavaScript SDK.
You can add it to your common\js folder and reference it in the common\index.html (just follow the instructions Facebook probably provides). This way you could easily 'extend' it to whichever additional environments you will add in Worklight Studio in your project setup.
Of course, you can also choose to use Facebook's native SDKs for each environment in your Hybrid application. In this case, you'll need to add the SDK in the iphone-ipad-or-android\native folder and follow Facebook's integration instructions (note that for iPhone the actual integration will be done in Xcode, not Eclipse).
If you choose to create a native application and bundle it with the Worklight SDK, then you should opt for the Facebook SDK dedicated to the specific OS. Here, you will add the SDK, again, by following Facebook's instructions.