Cloud Messaging for macOS (Flutter) not receiving messages - macos

I'm trying to get my Flutter application to receive messages using Cloud Messaging. This is working great on iOS, but for my Flutter macOS application, no matter what I try it's not working.
There seems to be very little documentation online about how to do this, with even the official documentation not being particularly clear.
What I have tried:
Cleaning Flutter
Removing pods and rebuilding
Sending messages from both Firebase's test page as well as a Firebase Function
What I am wondering if I have got wrong:
In the documentation it says For iOS; you must have a physical iOS device to receive messages., does this mean I should be doing something different when running a macOS app too?
Where it says in the documentation, This guide applies to both iOS & macOS Flutter apps, repeat each step for the platforms you require, does it literally mean every single step, as some steps seem to be fine not being repeated eg....
Can I reuse the same Firebase iOS app and Apple key or do I need to create a separate Firebase iOS app and separate Apple key?
Can I use the same identifier as with my iOS implementation?
Thanks so much!

For anyone else trying this, it turns out that notifications shouldn't work on MacOS using the default build approach. Instead, you must use a notarized version of the app. Many thanks to Markus Aksli, who responded with the following:
No, you can just run on your mac, however you need a build that has
been notarized by apple (https://github.com/FirebaseExtended/flutterfire/issues/5717)
You can use the same identifier and key

Related

How to get macos app signing set up for packages

I am new to macOS development and am having a terrible time trying to get my code signed. The documentation to me seems to be horrible.
My specific situation...
I am building a cross-platform app that runs on Linux, Windows, macOS and eventually iOS and Android.
It is a console app that runs as a service or LaunchDaemon
It has a UI served by WebView, http, or console commands depending on the scenario.
It is built with Go 17 in VScode.
I am not using xCode other than the command line tools.
My goal on macOS it to distribute it as a package (pkg) and not as an app.
I have been using MunkiPkg to build it
I am hung up on understanding how the various certificates need to be set up. I have not been able to get a successfully signed package notarized.
Can someone please point me to some documentation that explains how my scenario works? Most of what I found requires it to be built in xCode. And the Apple docs seem mostly to focus on how great their tools are without actually explaining how to use them.
Help!

Today widget doesn't update from TestFlight / Enterprise distribution

I have an app that contains a Today Widget and it's working fine during debug as well as the first version distributed using TestFlight & HockeyApp.
The problem occurs when the user updates to a newer build through their service. The widget seems to just show the snapshot and never actually initializes (I print out logs when it gets to certain parts of my view controller but I'm not seeing those).
To fix this problem the user will have to restart their device or delete and install the app again.
Does anyone know of this issue and/or how to fix this?
I've seen the same issue using OTA installation (Testflight web, HockeyApp) but it seems to work fine distributing through the new Apple Testflight app.
I would suggest filing a radar ticket to Apple if you plan to continue distributing apps with widgets through OTA methods. Personally I've just switched over to using the new Apple Testflight app to distribute my betas.

Phonegap stuck at detecting iOS SDK environment

i'm trying to create my first app using Phone Gap, so i manage to Build a "generic" app, after installing node.js and phonegap.
So i'm trying to run the following command on the terminal:
phonegap build ios
And it always get stucked on [phonegap] Detecting iOS SDk Environment.
I have, xCode 5, and i do have all the profiles needed to develop, and distribute for iOS, in fact i couple of hours ago, i just send my first app to Itunes Connect, so i think my environment, is fine.
Any ideas? Thanks for the attention!
So, instead of using the command phonegap build ios, I tried phonegap run ios. The program runs, and also a folder was created with the xCode files.
I still dont know what was wrong, but it worked for me.

read sms data of an iphone in a mac app when connected

I need to develop a mac app that reads and shows all the text messages that iPhone has. I know about the privacy issues and all and have also tried to read the sms.db file using sqlite_open command; it gave me SQLITE_AUTH error.
Now my question is How did the PhoneView people did it?
Check out these urls:
http://www.ecamm.com/mac/phoneview/quicktour.html?show=4
http://www.wondershare.com/data-recovery/iphone-data-recovery.html
Although both of the apps are not on Mac App Store, so I am assuming Apple might have rejected it. But even then I would like to know how these people did it.
They probably used libimobiledevice library http://www.libimobiledevice.org/

Xcode 4.3.2 and iOS 5.1.1 + jailbreak: App installs but crash on launch

I don't have the Apple 79€/year account. In iOS 5.0 and Xcode 4.2.1 I changed SDKSettings.plist ecc... And it works. In iOS 5.1.1 and Xcode 4.3.2 no, I already changed settings ecc but don't work, the app installs on device but crash on launch... How can I run my app on device without crashes? Thanks, and sorry for my english.
I have had this issue before on a jailbroken device. You have a few solutions depending on the exact issue. First you can install app sync in order to allow unsigned code to work on your device if you are not using a valid code signing identity. The second option is to actually get a valid code signing identity along with the provision profile so you can run the application correctly. This involves paying for the developer program so this may not be the best option.
Last is a very common issue with jailbroken devices. Which is that you will receive an error such as "failed to get the task for process xxxxx". This tends to happen a lot with jailbroken devices. This is because Xcode notices you are not using a provision profile that is required to report error logs. All you have to do is launch the application again on the device and everything should work.
This is just Xcode not being able to fully launch your application because of the missing provision profile so it results in a crash. If none of these solutions solve your problem please post a more detailed explanation of the issue you are having.

Resources