<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Richie</title>
    <description>The latest articles on DEV Community by Richie (@richiemuller).</description>
    <link>https://dev.to/richiemuller</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2920899%2Fdd7447fd-e369-4f0c-bec1-ac1be321a340.jpg</url>
      <title>DEV Community: Richie</title>
      <link>https://dev.to/richiemuller</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/richiemuller"/>
    <language>en</language>
    <item>
      <title>How to Integrate anyIPSDK in Your Swift App in Just 15 Minutes</title>
      <dc:creator>Richie</dc:creator>
      <pubDate>Fri, 07 Mar 2025 13:18:32 +0000</pubDate>
      <link>https://dev.to/richiemuller/how-to-integrate-anyipsdk-in-your-swift-app-in-just-15-minutes-3jha</link>
      <guid>https://dev.to/richiemuller/how-to-integrate-anyipsdk-in-your-swift-app-in-just-15-minutes-3jha</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;I integrated anyIPSDK as an additional revenue stream for my iOS app. It runs alongside my existing ad system with no performance impact, doesn't collect user data, and provides a passive income stream based on my DAUs. Implementation is just a few lines of code with a straightforward Swift package integration.&lt;/p&gt;




&lt;p&gt;Hey fellow devs! After struggling to monetize my iOS app beyond traditional ads, I recently tried out &lt;a href="//anyip-sdk.com"&gt;anyIPSDK&lt;/a&gt; and was surprised by how quick the integration was. I thought I'd share my experience in case it helps anyone else looking for alternative revenue streams.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Found Out About anyIP-SDK
&lt;/h2&gt;

&lt;p&gt;I was skeptical at first (as we all should be with SDKs), but after getting the code and running tests, it turned out to be a pretty decent way to get passive revenue!&lt;/p&gt;

&lt;p&gt;What convinced me to try it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It runs in the background while my app is active without any UI changes or user interruptions&lt;/li&gt;
&lt;li&gt;The performance impact was minimal - I monitored CPU usage before and after&lt;/li&gt;
&lt;li&gt;It's privacy compliant (important since my user base is mostly in Europe)&lt;/li&gt;
&lt;li&gt;I didn't have to change my existing AdMob implementation&lt;/li&gt;
&lt;li&gt;Works across platforms (I'm planning a macOS version of my app soon)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's how I implemented it in about 15 minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Getting It Installed
&lt;/h2&gt;

&lt;p&gt;I was contacted by anyIP SDK team and got access to their &lt;code&gt;swift-sdk&lt;/code&gt; package. Then it pretty basic:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Unarchived it to my dev folder&lt;/li&gt;
&lt;li&gt;Opened my project in Xcode&lt;/li&gt;
&lt;li&gt;Went to "Package Dependencies" in project settings&lt;/li&gt;
&lt;li&gt;Clicked "+" and selected "Add Local..."&lt;/li&gt;
&lt;li&gt;Browsed to the SDK directory&lt;/li&gt;
&lt;li&gt;Added it to my project&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This was straightforward - just a standard local Swift package. Xcode handled the dependencies without any issues.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Initializing in My Code
&lt;/h2&gt;

&lt;p&gt;After installation, I added this to my project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;import&lt;/span&gt; &lt;span class="kt"&gt;DemoSDK&lt;/span&gt;

&lt;span class="c1"&gt;// Initialize with the API key they provided&lt;/span&gt;
&lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;sdk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="kt"&gt;DemoSDK&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="nv"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"my_api_key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nv"&gt;eulaAccepted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;// I only set this after getting user consent&lt;/span&gt;
        &lt;span class="nv"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;production&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;// Start it up&lt;/span&gt;
    &lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"SDK started successfully!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="nv"&gt;failure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Unable to start SDK: &lt;/span&gt;&lt;span class="se"&gt;\(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="se"&gt;)&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Failed to initialize SDK: &lt;/span&gt;&lt;span class="se"&gt;\(&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="se"&gt;)&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I import the DemoSDK module.&lt;/li&gt;
&lt;li&gt;Initialize it with the API key (which you'll receive from the anyIP team).&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;eulaAccepted&lt;/code&gt; parameter should only be set to &lt;code&gt;true&lt;/code&gt; after the user has accepted your app's End User License Agreement.&lt;/li&gt;
&lt;li&gt;We specify the production environment (I spent some time looking through the SDK code and testing before implementing this just to be safe, but it’s not complicated than this).&lt;/li&gt;
&lt;li&gt;Finally, we call the &lt;code&gt;start()&lt;/code&gt; method with success and failure callbacks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s completely transparent and it didn’t impact my app's launch time at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Setting Up Automatic Launch
&lt;/h2&gt;

&lt;p&gt;To make this completely hands-off, I decided to launch the SDK at app startup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="kt"&gt;AppDelegate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;NSObject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;UIApplicationDelegate&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="nv"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;DemoSDK&lt;/span&gt;&lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;

    &lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;application&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="nv"&gt;application&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;UIApplication&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;didFinishLaunchingWithOptions&lt;/span&gt; &lt;span class="nv"&gt;launchOptions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;UIApplication&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;LaunchOptionsKey&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Any&lt;/span&gt;&lt;span class="p"&gt;]?&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;Bool&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// I tie this to my app's existing EULA acceptance&lt;/span&gt;
        &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;eulaIsAccepted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;UserDefaults&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;standard&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;forKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"user_accepted_eula"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;eulaIsAccepted&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;sdk&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="kt"&gt;DemoSDK&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;apiKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"my_api_key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;eulaAccepted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;?&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;start&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;success&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;failure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;nil&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;applicationWillTerminate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="nv"&gt;application&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;UIApplication&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;sdk&lt;/span&gt;&lt;span class="p"&gt;?&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stop&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Since my app uses SwiftUI, I added this to register the AppDelegate (using the @UIApplicationDelegateAdaptor property wrapper):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;@main&lt;/span&gt;
&lt;span class="kd"&gt;struct&lt;/span&gt; &lt;span class="kt"&gt;MyApp&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;App&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;@UIApplicationDelegateAdaptor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;AppDelegate&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="k"&gt;self&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="nv"&gt;appDelegate&lt;/span&gt;

    &lt;span class="k"&gt;var&lt;/span&gt; &lt;span class="nv"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;some&lt;/span&gt; &lt;span class="kt"&gt;Scene&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kt"&gt;WindowGroup&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kt"&gt;ContentView&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This setup ensures the SDK only runs when my app is active and the user has accepted my terms. It also handles proper shutdown.&lt;/p&gt;

&lt;p&gt;Note that even if it’s a simple SDK, the implementation follows best practices for iOS app development.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Verified About Privacy and Resource Usage
&lt;/h2&gt;

&lt;p&gt;I'm always cautious about third-party SDKs, so before releasing my update, I:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Examined the SDK source code for any privacy concerns&lt;/li&gt;
&lt;li&gt;Confirmed it doesn't collect user information (this was a big deal for me)&lt;/li&gt;
&lt;li&gt;Verified there's no cryptocurrency mining&lt;/li&gt;
&lt;li&gt;Ran Instruments to check CPU/memory impact during extended usage&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  My Revenue Experience So Far
&lt;/h2&gt;

&lt;p&gt;After about a month of using this in my app:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The revenue is based on daily active users who've accepted my EULA&lt;/li&gt;
&lt;li&gt;Payment varies by user location (my US users generate more than others)&lt;/li&gt;
&lt;li&gt;I still get my regular ad revenue - but with this SDK I can almost double it!&lt;/li&gt;
&lt;li&gt;Payments have been reliable, hitting my account within 3 business days of month-end&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's not making me rich (yet), but as a passive additional stream alongside my existing monetization, it's definitely worth the 15-minute implementation time. &lt;/p&gt;

&lt;p&gt;If you're considering trying it, feel free to ask me questions in the comments, happy to share more specifics about my experience.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
