Meteor audio calling - meteor

I am building chat app and want to add voice chat feature. I came across webRTC protocol and there is package available for it in Meteor. But I found that it is developed for browsers. So if I used it in my application, I believe it will only work on the browser version.
Is there a way to implement audio calling feature that will work on IOS and Android as well?

For iOS and Android (Cordova), you need to use Cordova or PhoneGap package which implements WebRTC protocol and API.
You can easily google it, for reference take a look on phonertc package. I've used it in a few projects and can confirm what it works inside of Meteor app.

Related

Full Firebase React-native app to offline persistance [duplicate]

I have an existing iOS app that I'd like to start adding some React Native screens to. The app uses Firebase with persistence enabled so that it works offline. Is there a way to also use Firebase directly within React Native while maintaining offline functionality?
If the answer is "Yes", do iOS and React Native share the same local data store? This would be important, so that offline data changes on iOS screens would reflect data changes made from React Native screens and vice versa.
Thanks for sharing your insight on this!
Alternatively, you can use Firestack, which is a native library that works with both iOS and Android on react native.
Offline support is enabled along with storage, the real-time database, authentication, remote configuration (in development), etc.
(disclosure: I am one of the primary authors of Firestack)
Firebase's offline disk persistence is currently only available in its native iOS and Android SDKs. It is not yet available for JavaScript SDK.
The javascript SDK will persist new write requests when you are offline and will sync with the server once you go online. But if you were hoping to show a list with data that was previously fetched from firebase, then you are out of luck with Javascript.
One of the answers mentions Firestack, but it is no longer supported.
On a project I just ended up installing this package https://github.com/invertase/react-native-firebase. It is a bridge to the native ios & Android SDKs for firebase and if you use it you can also use persistence.
Tested and verified. All works great! :)
UPDATE:
It is now possible https://firebase.google.com/docs/database/web/offline-capabilities
OBSOLETE:
As of Firebase JavaScript SDK 3.1.0, offline persistance is still unavailable. It's recommended you use React Native's AsyncStorage.
All of the answers above are out of date!
As of JULY 2020 offline persistence is supported out of the box when you use react-native-firebase.
Read more here: https://rnfirebase.io/firestore/usage#offline-capabilities

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

Why can't we use angular-fire2 package for firebase with Nativescript Angular app

If nativescript is using javascript engine behind the scene. If I use angular for nativescript development, shouldn't I be able to use angular-fire2 for firebase.
if I could code sharing would be much better with Web and Mob App.
https://stackoverflow.com/a/46088932/6408287 contains the answer you are looking for. In short - NativeScript does not implement the node.js modules specification.
Angular-fire2 is made to run inside node.js, whereas mobile firebase sdks are made to run on mobile platforms. Efficiently. Hence the difference in APIs.
Even if you were to somehow run angular-fire2 on NativeScript, chances are it wouldn't execute as well as the mobile sdks would.

Meteor mobile build vs having a phonegap browser

Why is the difference between using a simple phonegap browser app pointed at your site vs using meteor's mobile build options?
a simple phonegap browser app pointed at your site
Not sure exactly why you would be ready to use this option, compared to a simple shortcut / link to your site, or even an "installable" Web App.
Anyway, since you point at your site, it means you require an Internet connection whenever you open your app, and you are limited by what a website can access to on your device.
meteor's mobile build options
It becomes similar to a native app (it is actually called a "hybrid" app), so you can use it totally offline, and you can access more device functionalities (file system, notifications, etc.).
Nothing really specific to Meteor here, it is rather why using a hybrid app v.s. a shortcut.
In the end, you should base your decision on your requirements:
Do you need to access your app while offline?
Is your app primary functionality accessing "real time" content that makes no sense using your app while offline? (like news, forums, etc.)
Do you need to access specific device functionalities, that are not accessible by a normal website?
You should have plenty resources on that topic on the Internet.
Your question might rather be: what is the difference between a standard hybrid app (typically built through Cordova / Phonegap) and one built through Meteor?
In that case, you are asking what Meteor brings specifically? (as it uses Cordova under the hood to build the app)
First of all, you have all advantages of Meteor framework for normal website (minimongo, isomorphic methods, etc.)
You also have by default the Hot Code Push functionality. You can also set it up on your Cordova / Phonegap app, but you will have to configure it yourself, whereas Meteor does everything for you.
Finally, you might benefit from Meteor packages that bring Cordova plugin + client code + server code, something unique to Meteor as it is a full-stack framework.

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