Alternative for PACKAGE_INSTALL in Broadcast Receiver - broadcastreceiver

I am confused on what alternative that can be used to know when my App finished installing.
I read that this link was working before but now its deprecated.
I was looking into something like this SharedPreferences as alternative.
is there a better way in doing this?
TIA

Basically there are no alternatives. The latest information was the one I shared above. What I did is to just require my users to restart the phone when .apk was installed. After that I am handling the BOOT_COMPLETED broadcast. In cases that they are to re-install the APK, I am handling the ACTION_PACKAGE_REPLACED

Related

DeviceCheck Without A Server

I am trying to implement DeviceCheck for my app. I am new to coding and do not have the resources to build a server to be an intermediary between the client and Apple's servers. Is it possible to just query for and update the DeviceCheck bits just on the device?
I have tried converting some DeviceCheck tutorial's server code to swift but have not had any luck. Can anyone help me wit this?
I used to have this problem too, but I decided to use a $0 non-consumable purchase since that will be recorded in the Apple receipt file. Depending on what you need it for, this could be the simplest way to do something similar to DeviceCheck without adding your own server component

Need Voip call like in Uber in Flutter

My app need a voip phone call to another person who is using this app and the phone number should not be the real phone number like in Uber. Can somebody please help, I searched in google and I could find nothing.
I was trying to add this feture in my crrunt project and find zegocloud they have good documentation on how to implement voice/video calling one-on-one and group too.
Here's the doc and here's the code snippet of basic implementation in the flutter.
Hope this will help you.
I would say the best option is to go with an open source WebRTC based solution if you are ready to self host the VoIP server. In this case you can consider using Pion VoIP package which is available even in flutter. See https://github.com/pion/ion-sdk-flutter
To avoid hosting and ready to pay some cash for the calls users make, consider Twilio or any other cheaper alternatives which can do the hosting for you, but gives API calls to use them in your app.
Hope this helps :)
I would suggest that you save the actual number with a key value pair example
{
'cell':'0000000000',
'fakeCell':'0123456789'
}
Then whenever you want to call through the app you do a quick lookup to get the real number.
also here is a WebRTC Plugin you can use

Receive mails with Flutter

I want to create an app with Flutter for which it is necessary to receive (and send) mails. Clients share information with eachother in a decentral way using i.e. Googlemail without using an own server.
During my research I found several ways to send mails but no way to receive them since this seems to be not implemented yet in any package.
Flutter offers the option to use platform-specific code with platform channels (flutter plattform-channels) which might be a solution.
However I haven't tested this yet because I write the app for both iOS and Android which means that I'd have to do this for each java and Swift/Objective C.
Maybe someone here knows a better solution.

Fetch from background

I am writing an iPhone app, and I have a remote server that will deliver content. I would like to have my app poll the server once per day to see if there is new content, even if it's not running or in the background. I would also like to do this without setting up an APNS. Any advice?
You can't do that, either when your 'not' running or if you are running in the background. The best you could do is to download once per day when your app is first run / pushed to the foreground.
You could use remote notifications to "prompt" the user to bring the app to the foreground so that it could download something?
With the current apple IOS guidelines, that is about the best you can do.
I read that you are trying to avoid using APNS, but I am wondering if you are trying to avoid it for the right reasons, especially when it is designed to efficiently solve the scenario you are describing. I've seen many developers seek alternative solutions to APNS simply because the technology appeared to be complex to use after looking at Apple's documentation. The online documentation does go into a lot of details, right down to the binary protocol level.
But just to be sure you know, there are open-source libraries whose only purpose is to shield you from all these technical details. Some libraries are more complex than others, but some are remarkably user-friendly. If you have not done so already, you might like to take a look at JavaPNS and other similar projects.

reading a file saved by another app in iphone

Is there a way to have an app write a into a file and then have another app read from that file?
I mean writting into the file system of the iPhone.
I want to do this without using an internet connection. So uploading the file and then downloading from the other app is not what i mean.
Thanks!
It appears that there are ways you can, but it won't get approved by Apple if you do.
See http://blogs.oreilly.com/iphone/2008/09/sandbox-think-like-apple.html for more information.
The current sand boxing of applications does not allow this, however it appears that this may be available in future iPhone OS versions. Reference
I'm not sure exactly what circumstances you're in here, but you could register app B as a handler for a particular protocol, and have app A try to open such a link (e.g. appB://yourinfohere). It depends on how much data you want to transfer and many other things, but it might work.