Fcm implementation in self made framework - ios

I am new to the IOS development. I have created the app and Implemented the FCM in it. And notifications are working just fine as expected.
Now I have to make this whole code as a private framework. but I am really confused. The following is the thing that is what confused me
I have a workspace with the Framework and the multiple apps that depends on the Framework.You can think framework as a complete app.And the multiple apps are dependent on the framework and these multiple apps have no UI but starting the Framework app with the following things (And these following things are what I am unable to do and are needed for each client app)
App Name
App Icons
App Colors
And Ofcourse FCM plist google file for each client separately
So I really do not know How to make these things change for each client. Because I really do not know if there is something to be done for the shared resources to be get overrided by the Client app.
So what should be done here? How can I fulfill these requirements? how can I achieve what I wanted?
I hope that I am pretty clear in my questions. Please tell me how it can be done.

Related

Running iOS app in the background without user interaction

Hey all I’m new to the world of Xcode and building apps.
I am wondering if it were possible to have an app run in the background and have it listen to the photos library and if it finds a new photo has been added it would automatically upload that to some type of rest api call without the user having to interact/do it manually?
This will only be used in my household so I’m not looking to get it into the App Store or go through any approval process that apple does if it were going to be in the App Store.
So before I spend too much time looking around - is this possible with iOS 14+? Only thing I have come across that remotely sounds like something that would work would be this PHPhotoLibraryChangeObserver but I’m not sure if the user has to interact with it in order for it to be used or not? I’m open to any suggestions you more experienced Xcode programmers have about the above.

IOS Offline Caching WebView content

I need to load an url in a WebView and download the whole content of the website (documents, images, css, etc) to be able to work offline.
I built an app 4-5 years ago (targeting iOS 7.0) using this --> http://robnapier.net/offline-uiwebview-nsurlprotocol
Recently I was asked to check if the app still works for the latest iOS versions. I found that most of the classes mentioned in this article are deprecated now (for example: UiWebView or NSURLConnection).
When I run the app now, the caching process starts but it gets stuck at some point while downloading a file.
I've enabled CFNETWORK DIAGNOSTICS and most of the time I get this error: SSL_ERROR_ZERO_RETURN operation failed because the connection was cleanly shut down with a close_notify alert. I've researched a lot without any success.
I'm thinking about rebuilding the whole app using a modern solution, but actually I don't really find anything clear. Probably it is not common to do these kind of apps.
My question is if someone nows a better approach for this. I don't even care if I do it natively on iOS or using some cross-platform technology like Reac-Native or Flutter.
Any suggestions would be very welcome.
Thanks.
EDIT
The web that I have to wrap inside the WebView implements a Service Worker to cache the data. So in a Safari browser, this web works offline.
I would just need to wrap someone this web in an iOS app, I tried SFSafariViewController but still not working.
SFSafariViewController
Deprecated doesn't mean unavailable. There are still plenty of apps using UIWebView and NSURLConnection. Before you go rewriting your app using the latest and greatest, you should understand what the problem is. There's a good tip for debugging the error you're getting in iOS 11.2.1 Xcode 9.2 BoringSSL SSL_ERROR_ZERO_RETURN(6). Short version: set the CFNETWORK_DIAGNOSTICS environment variable so that you get better network debugging information.
Given the age of your code, I'd imagine that Apple's requirement that apps use secure connections starting in iOS 9 might be at least one factor. You should read up on App Transport Security to learn how to update your app to meet those requirements. You'll definitely need to add a key or two to your app's Info.plist file, and you'll probably also want to update your app to use a https URL instead of http. Making these changes will be much easier than rewriting your app, and you need to meet the ATS requirement anyway, so you might as well do that part first.

How to demo your react-native app continuously during development

As the title suggest I need to be able to showcase a react native app continuously during development every other day with a client which is not technical orientated. The alternativs I see is,
* Sharing a git/github repo for them to download and run through Xcode
which is not a possibility.
*Screen record while i run the simulation on my computer and share it
with the client
Both of these options seems subpar and not optimal.
How do I do this in a better way?
I am sorry if this seems like an open ended question and if you have suggestions on how to better formulate this question please provide it.
You can upload the binary to TestFlight, which allows your client to download and use the app instantly.
You can also consider over-the-air update systems like Expo or CodePush which allows you to deliver Javascript-only updates automatically to your clients when they open the app (just like a web app).

How to push Swift code to client through server in iOS?

I want my app to make urgent security updates without going through Apple's review process. I am not trying to do this for all my updates, or circumvent Apple's reasonable review requirements. All it would have to do is push a .swift file to the client, which would be accessed somewhere in the app.
I definitely know there is a way to do it in JavaScript, as I already made a mechanism of the same type in a React Native. I used this approach, but I don't think there is an equivalent for iOS from what I've heard.
There definitely is a solution, as I've heard many devs doing this (for less, um... valid reasons) but I can't find it.
You cannot do this, for both technical and policy reasons. Apple expressly forbids you from delivering new code to your apps's outside of the app store process.
The other part of it is that your apps run compiled object code, not source code. Aside from the iPad Swift playgrounds app, there is no Swift compiler on the user's devices.
Javascript is a horse of a different color. That's an interpreted language, and is designed to be delivered and run dynamically.

Fake Step Data for Apple Health Kit in React Native Development

I'm developing a React-Native app that utilizes Apple Health-Kit to gather daily step data for users. I've got everything setup and running, but I'm not sure what people are doing to provide fake step data for testing/development purposes. For the other parts of my app, I'm always getting data from HTTP requests, for which I just provide a test api and serve up dummy data from a file in my repo. But does anyone know how to do this for step data (or any other sort of data) in Apple Health-Kit?
Thanks
I figured out a way to handle this. Newer versions of the Xcode iPhone simulator come with Apple Health Kit installed. So, you can just manually go into the app in the simulator and add some step data the old fashioned way. Not a scalable solution if you need loads of data, but good enough for my needs.
You can manually add step data via the Health app already included on your iPhone simulator.

Resources