Subscription Management by StoreKit2

Store Kit2 was announced in WWDC21 and it simplied process to handle in-app purchase than previous APIs. But still there are some limitation and over iOS 15 is required to use it. In my developing app, I have implemented subscription plan to erase ads space. But I couldn’t find best way as StoreKit2  to directly handle subscription management like cancelling and renewing the subscription in App. One of the way apple providing as of now is sheet to have dedicated subscription management page in App. Other approaches to use store kit 1 methods. To try new way, I tried to use new one instead of that.

Here is instance method in SwiftUI as presentation modifier 

And in internet, there is quite few sample code for that. So let me post my sample with Swift UI. 

Button(action: {
      if let windowScene = UIApplication.shared.connectedScenes.first {
         do {
            try await AppStore.showManageSubscriptions(in: windowScene as! UIWindowScene)
         } catch {

It’s easy to implement it in SwiftUI View code as Button. Then clicking the button, The sheet having Subscription plan options including cancelling will be shown on the APP.  Like this.

Also you can see the implementation on below app.


Fake Cleats

During riding, recently I’ve got a cramp in my leg. I thought it was caused by long interval between riding, but I found an article about position of SPD-SL Cleats on binding shoes. If position is not well fitted with body and pedal, it may be reason to get a cramp in the legs.

Coindidentally found another article about fake cleats, and I checked my stock for cleats, since I brought the cheapest one  from Lazada in 2020, and merchants was in China.  Comparing with picture in article, my stock seems be fake:_(.

I’m ordering new binding shoes, so will repurchase cleats together….


Video for online privacy protection by apple

There are some opinions for this video in Japan. Because this video is too much emphasising that any data handling on marketing must be wrong. But those opinions are mostly in side of marketing and tech company side who are dealing with online marketing. Recent all of marketing activity are heavily depending on user data analysis by associated with user’s IDs. The perspective of consumer is not well considered than company side benefit. It’s unbalance  between consumer and business in last decade tech development. This is a part of reason I left from the industry.

 In fact, the online tech company is also caring the privacy protection by anonymising, so not bidding by persona name basis in the video. But at same time, regardless online or offline, there are some hidden trade about no anonymised persona data as violating the law, so platform vender should make function to protect user from at least criminal, also making well balanced system between consumer and business. So I can agree with the video and apple’s direction on this topics. 

WWDC2022 Platforms State of the Union

It’s just season to learn apple direction and product in June. WWDC has been hold in this week. And there are latest technology updates as well as new

One of the impressed tech in 2nd session “Platforms State of the Union” was ”Swift Charts”. It’s not conspicuous one because there are some similar library to make chart on swift app. But reason why I love is it enables us to make simple and smart chart on app as well as native app has, since it’s troublesome to make own designed chart by swift. 

Of course, there are more fantastic updates,  like concurrency async, Live Text API, NavigationStack and so on.  But Swift Charts was the most favourite one for me in the session. 

It’s effective from iOS 16. 


It might be 2nd time to go to Kanazawa in my life. 1st time was private trip when I was 21 years old. But completely forgot where I visited in that time and atmosphere of the town. And this time is for biz trip, so there is no time to visit anywhere in daytime. After finished work in the bi trip, dropped by one of the famous spot. It seems be late to come to there. Lively time might be day time. Hope I can visit again to the historical town.

View this post on Instagram

A post shared by Shun-ichi Takeishi (@tkisnet)