It’s called Web Inspector, a browser console for Safari on iOS and iPadOS.
It works pretty much as you would expect: tap the blue “i” button to open Web Inspector, tap it again to close.
Web Inspector will be free, with no in-app purchases, no ads, and no tracking, because I feel like this kind of developer tool should be free. I mean, Firebug was free, right?
If you’re on the iOS 15 beta and would like to TestFlight Web Inspector, send me your email address… or you can wait until iOS 15 is out. I hope to get Web Inspector in the App Store on day 1 if possible.
I will make another announcement when I launch it in the App Store.
There’s a weird bug in Time Capsule: when you’re in the middle of saving a web page, sometimes you can tap “Cancel” and still get the output HTML.
Actually… this behavior seems useful! If I can reliably reproduce this, I can then dramatically cut down the saving time and let the users get back to their browsing sooner. Unfortunately, no one on the internet is talking about this. Apple’s documentation is also unhelpful: “Tells the host app to cancel the app extension request.”
So to test it out, I created a simple app: the main app shows a number and a reset button, the share extension increment the number while running. I ran it, and here’s what happened:
Nice. It seems like the extension continues to run even after being dismissed.
I’m a bit tempted to add an “It’s now safe to close this popup” label in the extension UI, but as long as the behavior remains undocumented, it’s too risky.
So if you tried it and it works for you, great! But keep this between you and me, OK?
Actually, I do know a bit about marketing. Based on my very limited knowledge, marketing is hard. But engineers are supposedly good at solving hard problems, right? Programming and design are both hard, and I’m not terrible at them.
So for many years, I’ve been trying to “solve” marketing. Maybe there’s an algorithm or something that I can implement, and I just haven’t figured it out.
Until recently, I read a blog post by Yongfook about how he got his first 25 users. He didn’t talk about things like “build the hype” or “define your campaign goals,” he just listed out the things he tried:
I launched big new features on ProductHunt 3 times - until people grew sick of me
I wrote about bootstrapping on my blog and built 8 other products before this one
I tweeted about my startup constantly and sometimes those tweets went viral
I implemented a referral credit system that had zero effect
I started an affiliate programme that has had some small effect
I built a shopify version of my product which was a failure, and shut it down
…and that's just the stuff I can remember right now.
And I think I finally get it: marketing is literally metaphorically throwing everything at the wall to see what sticks. Keep throwing things and keep measuring the stickiness, there’s no easy way to do it.
Wait for paymentQueue(_:updatedTransactions:) to get called when transactions are updated.
Loop through the transactions:
If the transactionState is .purchased or .restored, unlock the in-app purchase.
If the transactionState is .failed, show an error or something.
Other states are less important, and you can ignore them if you want.
Call finishTransaction(_:) on .purchased, .restored, and .failed transactions to remove them from the queue.
If you don’t call finishTransaction(_:), the transactions will remain in the queue and show up over and over again. But it seems like finished transactions don’t always get removed in the sandbox environment.
I noticed that the receipt validation endpoint on my server gets called every time I launch my app. But it’s only supposed to happen when I process the transactions in paymentQueue(_:updatedTransactions:).
So I added a few print statements, and as I suspected, paymentQueue(_:updatedTransactions:) is getting called whenever I launch the app.
You can go to Settings → App Store → Sandbox Account → Manage to manage the subscriptions of your sandbox accounts. The point is that you don’t need to sign out of iCloud on your phone (which can be a scary thing) just to test subscriptions.
But other than seeing the active subscriptions, the sandbox subscription management screen is not very useful. Here’s what happens if you try to upgrade, downgrade, or resubscribe to an expired subscription:
Note that the sheets are showing your actual Apple ID. If you enter the password for the sandbox account, it says the password is wrong. If you enter your password, the sheet goes away, and nothing happens.
To test upgrade/downgrade/resubscribe, you’ll need to:
Sign out of iCloud (or better yet, get another phone).
Sign in to iCloud with the sandbox account.
Sign in to App Store with the sandbox account.
Then the sandbox subscription management screen will work as intended.
This will be a short post. I added two inline up-sells to the app:
Previously, I hide the sync toolbar for non-subscribers. Now I show the toolbar, but it only says “Sign up to enable sync.” Tapping the toolbar brings them to the subscription screen.
Previously, I hide the share button for non-subscribers. Now the share button is enabled, but when non-subscribers tap it, it prompts them to sign up. Tapping “Learn More” brings them to the subscription screen.
There’s no “before” image for comparison, unless you want a blank image.
As of now, the subscription screen of Time Capsule looks like this:
I’m pretty happy with the layout. It has all the elements required by Apple’s guidelines and doesn’t feel very custom or over-designed. The copy, however, is due for a rewrite.
“Sync and share” sounds vague. Most people probably think, “I don’t need sync and share,” let alone care about the implementation details like it needs a server. I was selling features, not benefits:
Features are things that your software does. Objectively speaking, Microsoft Powerpoint reads PPT files and lets you animate bullet points. Benefits are the perceived improvements in the user’s life that will result from purchasing your software. Subjectively speaking, customers of Microsoft Powerpoint buy it because it will let them close the deal, please their bosses, and get promoted.
With that in mind, I came up with this:
Access your saved pages across all your devices, including mobile, tablet, and web.
Export your saved pages as single HTML files with all the assets embedded.
Browser extensions to save pages directly to the Time Capsule server.
Yes, it’s a reiteration of the subscribe button, but consistency is a good thing, right?