Push notifications using React-Native - javascript

We are developing a mobile application that a user can register and subscribe with a monthly fee, the main function of the app is to notify the users just like messaging app. The notification will be coming from the admin dashboard. Anyone could advise us how to Push Notifications in real time to users both ios and android. We are using React-Native. Thank you in advance!

Here's a pretty popular GitHub repository for creating a notification system with React Native: https://github.com/zo0r/react-native-push-notification. It has support for both iOS and Android, however, it seems like Android may take more installation effort because it isn't supported by the React Native developers. I would recommend taking an hour or two following the installation instructions, trying it out, and seeing if it is right for your app.
Hope this helps!

Related

Web App runs inside Webview and installed like a native App

I created a Web App(PWA) via React and Bootstrap. It runs perfectly. I planned to create an Android and another iOS Apps that have only one page with a Webview that loads my Web App via URL and ship those Apps to the customer.
My question is that there is a better and standard way to this? I heard about Hybrid Frameworks like IONIC but as I understand, IONIC Apps, Are web Apps that run on device not loaded from a URL, Is that right?
What I want is that my changes in the server affect all users and Apps installed on their devices. Because of that, I created the PWA App, not the Native App. I searched a lot but I can't reach a final decision.
Used to be I was an Android developer and had a lot of problems with shipping the latest version to the customer, Now I want to use Web-based technologies to reach Apps that works like a website.
The issue here is: you will not be able to use the devices resources if you load the PWA in a Webview. For example push notifications will not work. A PWA can be installed onto a phone and windows as an application. This will have push notification on Android and Windows but not on Mac or iOS (Safari is the new IE). You need to go Hybrid or back to Native if you need more.
You are right with IONIC. It is a wrapper for a webapp stored on the device but it allows us to use native features (push works on both Android and iOS). But you still have the distribution issue since you need to publish to the stores every version. Not even mentioning the hoops apple gets you through when you try to publish.
The good thing with IONIC is you have a single source code for multiple platforms and you can choose the library you want to build with. It used to be Angular but now you can choose ReactJS, Vue, Angular or ES. Which makes it way friendlier.
With IONIC you could build the native features and lazy load the rest as dynamic component from a url: stackoverflow question if you do not care about backward compatibility.
I did both PWA and IONIC. Both has their pros and cons.
If I do not care about iOS and Apple I would stay with PWA otherwise IONIC.

How do I get a Phaser game onto the iOS App Store?

On my pc, I made a game with html, css, javascript, and phaser for the framework. I'd like to get this game on the iOS App Store. I have access to a mac so I could transfer my project onto it if I can't do everything on my pc.
What are my options for doing this? Or what would you recommend?
Releasing to the Apple App Store is a very stringent process, and there's really no room whatsoever for deviation from the intended process. You will outright need to transfer your project onto your Mac; iOS apps cannot be published without a Mac, as they require XCode to sign them.
Once you have your program on your Mac, you'll need to purchase a Developer Licence from Apple, making sure that you go for either Individual or Organisation (as those are the only licences that can publish to the Apple App Store). Note that not only do you need to join Apple's Developer Program, but also iTunes Connect (though this is free)!
After obtaining your licence, and setting up both accounts, you'll need to create a Provisioning Profile certificate for your developer(s) that you sign your app with through XCode, and create a unique identifier for your application.
From there it's just a matter of publishing it to the Apple Developer Program.
Once you upload, it will be placed into a Beta Review by Apple's testing team. Assuming it passes, you can add in all of the relevant store data and submit it to the store itself. This process usually takes a few days.
Hope this helps!

Ionic: integrate into iMessage on iOS

everybody. I'm stuck... I'm implementing an iOS chat on ionic framework, and use angular 1.
I have an idea... But in google i can't find any good information about implementing iMessage into my app (or otherwise, it doesn't matter).
For example, like this service do
Some ideas i've got from here:
https://github.com/matiastucci/socket-chat-client
You can create an iMessage app (an app that basically shows in the keyboard area when you are in the iMessage app). But, you can not create an app that will show incoming iMessages or that will send an iMessage to someone.
Information on building an iMessage app

CRITICAL issue with iOS, CocoonJS and Facebook

I've just published in the Apple's Appstore a CocoonJS powered Javascript game that integrates some Facebook functions. After creating my app to Facebook, I spent weeks testing it in the CocoonJS Launcher, and I found the following:
In iOS, the user should grant permissions to apps that tries to access Facebook through the phone's Settings -> Facebook, where a list of apps appear.
I did so with the CocoonJS Launcher and then Facebook started working as expected. However, the final app (generated through the Cloud Compiler) has just been published in the store and, after trying to access Facebook from within the app, the app says that the user should grant permission from Facebook's settings (as I did with the Launcher), but it doesn't appear at the phone's Settings -> Facebook (that is, the list of apps that use Facebook and where it appeared the Launcher).
I've created my app in Facebook, retrieved its ID number, put it in the CocoonJS Cloud Compiler (both for Apple and Android) and, of course, called the "init" function inside the game with the corresponding Facebook app code... Even though it worked with the Launcher, it doesn't work with the app, and now my app is alive and no Facebook integration can be done (which is a real mess, because almost every game function uses it now)...
How could I solve it? What can be happening? Might it have something to do with the Cloud Compiler, or maybe it's related to the JS code?
Thanks in advance for your time and effort! :)
As states in help center, do some testing first with a custom launcher:
http://support.ludei.com/hc/en-us/articles/200767268-Custom-Launcher
The CocoonJS launcher you download from the store has the configuration string of Ludei:
http://support.ludei.com/hc/en-us/articles/200924496-Social
The problem may not have been in the submission, but in the development of the application.
In case you feel it's a bug, please fill a bug report with the following template in their help center.
The template guide:
http://support.ludei.com/hc/en-us/articles/203459717-How-to-report-a-CocoonJS-bug
The forum to post the issue (troubleshooting section):
http://support.ludei.com/hc/communities/public/topics/200011348-Problems-Troubleshooting

Is there an alternative to Adobe PhoneGap and Appcelerator Titanium?

I just want a framework that allows me to build cross platform apps with HTML5 for at least iOS and Android. The problem that I'm having here is that I can't build PhoneGap or Appcelerator Titanium apps for iOS since I don't have a $99 developer subscription. I might have one in the future, but for now I can't. Is there anything like these frameworks around that doesn't require a iOS serial? I don't want to use one of those online tools that don't require coding. Preferably something like PhoneGap so I can access some of the phone's sensors, like the GPS and Camera.
If you want to publish in the App Store, you need a developer account. In order to get into the App Store, your app must first go through Apple's internal approval process, and you can only apply for that approval if you have an account.
The only way to publish in the App Store without your own account is to piggyback on someone else's account (e.g., publish it under a friend's account). It's unlikely that any publication service would let you piggyback on their account: what if you tried to publish malicious code and got their account in trouble with Apple?
If you don't need to publish in the App Store, your unapproved iOS app is still runable on jailbroken devices. If you do want to have your app in the App Store, you must get an account.

Categories