How make an Android widget with Cordova? - visual-studio-cordova

The Microsoft ACE plugin provided a way to make an Android widget.
Now that the plugin is discontinued, what is the recommended way of making a widget with Cordova?

Related

Flic Bluetooth Button and Xamarin Forms

I have written my mobile app in Xamarin.Forms and it works great in iOS and Android. My users are wanting to me to integrate a Flic button into the program. Flic is a bluetooth button that allows integration into your app. Click once and something in your app can happen. Click twice ... click and hold ... etc.
The sdk for Flic is quite good but they limit examples and information to just "raw" Android or iOS. Can anyone suggest how to integrate the sdk/dll files into xamarin.forms? I don't know much about bindings, etc.
how to integrate the sdk/dll files into xamarin.forms?
Fortunately, someone has already done it.You can add the binding library of iOS and Android from Nuget.
You can implement the method in iOS and Android .Then use the dependency service to call the method in forms.
If you want to learn more about how to bind native library or package in iOS and Android.
You can refer to iOS Document and Android Document.

Xamarin Forms Open Image in another app

I'm using xamarin forms. All I need to do is to open Image full sized with zooming and dragging. I know, that on Android I could do it using another app, "Gallery" for example.
But what should I do when developing on cross platform apps? Maybe there is a lib, that can do such things?
Take a look on ImageEdit plugin. It supports Xamarin.iOS and Xamarin.Android platforms.
This plugin will enable you to manipulate(resize,crop,rotate,monochrome) a image(png,jpg).
I've found the solution for my issue a long time ago, but forget about the answer.
For me the solution was to use the Stormlion Photo Browser. It has some nice functionality, and works with local images. For Uri you just need to use "file:///your_path_to_image" and that's it!

Use native Calling and Chat API in Xamarin forms

I am building a dating app in xamarin forms. Everything is setup like login,peoples profiles ,payments etc. But now i got stuck on implementing voice call and chat functionality.
There are many library available of native IOS and android like Sinch,Twillio they are not available for xamarin forms. Is there any way of using these library (Specially sinch api).
I tried to achieve it using binding feature available in xamarin but end up with failure. As binding feature only useful in case AAR(Android archive) or Jar library. I was looking for some example or guidance where something like calling/chat/image editor (i.e. where UI and coding involve) has been implemented in xamarin by using native API.
You can use SendBird Messaging SDK and Chat API for Mobile Apps and Websites.
It has support for Xamarin officially and It has a nuget package NOT OFFICIAL for Xamarin.Forms It's works perfectly you can download here
Additionally, you can use this sample on Github that use this nuget package.
This answer is not spam. It's only a recommendation
You can use CometChat Xamarin SDK, It fits your above requirements perfectly. It has Audio/Video call functionalities builtin along with Audio/video broadcast & screen share. For more information you can check out the documentation at the following link:
https://developer.cometchat.com/docs/xamarin-forms-quick-start

Detect phonegap app from wordpress

I am building my app in phonegap. In that app I am calling my wordpress website like window.location="http://www.example.com/";.
Because of window.location my app UI and mobile browser UI are looks same. So I want to detect phonegap app to defer from browser UI. Is there any way to do this.
#JayTh
Okay. Thanks. VERY GOOD TO KNOW. I spend hours getting beginners to understand issues. You got them.
Okay, once you load a webpage from a website you are NOT allowed to access any of the Cordova Plugin APIs. However, you can access HTML5 API, like camera and geolocation. Again, you cannot access any of the Cordova Plugin APIs, and any of the 800+ 3rd-party APIs.
The best way to access the web, is via inAppBrowser. However, the third paragraph states:
The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs. For this reason, the InAppBrowser is recommended if you need to load third-party (untrusted) content, instead of loading that into the main Cordova webview.
Apple is serious about their security, so if they detect you are going around this, they may reject your App. Just to be clear on this, there is a new security protocol, which Phonegap Build now requires, and so does Apple. With Phonegap Build, it will create the required Apple ATS entries into the Info.plist.
So, the best I can do at this point is give you three (3) links.
Top Mistakes by Developers new to Cordova/Phonegap
Core Plugins Setup
HOW TO apply the Cordova/Phonegap the whitelist system
On 1., you have hit #5 When designing the app, thinks phonegap works like a website or webbrowser.. For the remainder, I recommend just reading the bold sentences.
On 2., if you want to use the Cordova Plugins, it is best to use the version numbers, if not you will get the latest, and your code may break. This is because now, Phonegap Build now uses NPM for the plugins. And many times bugs fixes get into the plugin, that require the latest compiler - and Phonegap Build is always at least one version behind.
On 3., You'll need to use the whitelist to apply the fixes that maybe required for any new plugins you are using.
If you have more questions, I can answer them in comments. If it get too complicate, we can move to Google Group of Cordova/Phonegap - Best of Luck.

Styling HTML5 desktop notifications

I've included this plugin for desktop notifications in my Laravel 3 project.
http://aquaron.com/jquery/desktopify
It works fine, only problem is i can't find a way to "style" the notifications!
Is styling the desktop notifications even possible? If it is can someone please point out for me how it is done!
Unfortunately this library uses only .createNotification() and not .createHTMLNotification(), but Google just dropped .createHTMLNotification() support on version 28. There's a warning about this:
Warning: webKitNotifications.createHTMLNotification() in the web notifications API has been deprecated. The new web notifications API only allows text. Chrome notifications API will be promoted to stable soon and web notifications will be updated to use the new rich notifications format.
But it is doing it differently, using this rich notifications.
But this is just for chrome, so if you need it for all browsers, you will have to write your own implementation or find another library to help you.

Resources