<?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/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Offline License Control and Login Iteration - License Manager for Combu				            </title>
            <link>https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 12 Apr 2026 12:35:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Offline License Control and Login Iteration</title>
                        <link>https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/#post-1451</link>
                        <pubDate>Fri, 01 Feb 2019 22:03:49 +0000</pubDate>
                        <description><![CDATA[Thank you Francesco for the insightful and rapid reply.Best regardsCiao,Fau]]></description>
                        <content:encoded><![CDATA[<p>Thank you Francesco for the insightful and rapid reply.</p><p>Best regards<br />Ciao,<br />Fau</p>]]></content:encoded>
						                            <category domain="https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/">License Manager for Combu</category>                        <dc:creator>fau</dc:creator>
                        <guid isPermaLink="true">https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/#post-1451</guid>
                    </item>
				                    <item>
                        <title>RE: Offline License Control and Login Iteration</title>
                        <link>https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/#post-1450</link>
                        <pubDate>Thu, 31 Jan 2019 20:44:25 +0000</pubDate>
                        <description><![CDATA[If you look at the sample script DemoLicenseManager (lines 166-173) it instantiates a new LicensedUser object setting the username and licenseEncrypted getting them from PlayerPrefs (Usernam...]]></description>
                        <content:encoded><![CDATA[<p>If you look at the sample script <em>DemoLicenseManager</em> (lines 166-173) it instantiates a new <em>LicensedUser</em> object setting the username and licenseEncrypted getting them from PlayerPrefs (Username is stored by Combu login if you have enabled "Remember credentials" else you can store it yourself after a successful login; while License is stored few lines later in the same function ).</p><p>When in offline mode you can retrieve the license's type (for example eLicenseType.Monthly), value (for example: 12-2018) and output (for example: long number of date/time ticks of 31/12/2018) by calling <em>LicenseManager.IsValidLicense</em> like it does in the script <em>LicensedUser</em>.</p><p>For example:</p><ul><li>after a successful login:</li></ul><pre>PlayerPrefs.SetString("Username", user.userName);<br />PlayerPrefs.SetString("License", LicenseManager.instance.Encrypt(user.license));<br />PlayerPrefs.SetString("LicenseNumber", user.licenseNumber);<br />if (user.licenseIsValid) {<br />   Debug.Log("License is valid: " + user.licenseType + " - value: " + user.licenseValue);<br />   // There's also user.expireDate (if licenseType is Time/Monthly/Yearly) and user.expireLaunch (if licenseType is Launch)<br />}</pre><ul><li>when offline:</li></ul><pre>user = new LicensedUser();<br />user.userName = PlayerPrefs.GetString("Username");<br />user.licenseEncrypted = PlayerPrefs.GetString("License");<br />user.licenseNumber = PlayerPrefs.GetString("LicenseNumber");<br /><br />LicenseManager.eLicenseType licenseType;<br />string licenseValue, licenseOutput;<br />if (LicenseManager.IsValidLicense(user.licenseEncrypted, user.userName, out licenseType, out licenseValue, out licenseOutput)) {<br />   Debug.Log("License is valid: " + licenseType + " &gt;&gt; " + licenseValue + " &gt;&gt; " + licenseOutput);<br />} else {<br />   Debug.Log("License is not valid");<br />}</pre><p>I will eventually add an easier method in the near future to automatically do this check and set internal user variables by creating an optional constructor.</p>]]></content:encoded>
						                            <category domain="https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/">License Manager for Combu</category>                        <dc:creator>Skared Creations</dc:creator>
                        <guid isPermaLink="true">https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/#post-1450</guid>
                    </item>
				                    <item>
                        <title>Offline License Control and Login Iteration</title>
                        <link>https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/#post-1449</link>
                        <pubDate>Thu, 31 Jan 2019 19:33:59 +0000</pubDate>
                        <description><![CDATA[Hi Francesco,I have a question about offline license iteration and offline login features. I am sure you have control for those. But I could not find a way out I would be grateful if you cou...]]></description>
                        <content:encoded><![CDATA[<p>Hi Francesco,</p><p>I have a question about offline license iteration and offline login features. I am sure you have control for those. But I could not find a way out I would be grateful if you could help me.</p><p>Let me explain the process. I want the user to be able to login without server access. For that I can retrieve the last logged-in user. If there is an already logged in user previously I want the user to skip the login page. And If he/she has a limited license like say 5 times maximum, I want to control the entry count when offline. I guess those details are saved within the PlayerPrefs. But is it encrypted? And if you could help me to control these parameters I would be very happy. Right now I can log in if a user exists in the player prefs. But I can not manage the properties passed into it. By the way, the application is designed for Android. I think Unity saves player prefs differently depending on the platform it is running on. I wanted to mention this detail if it makes a difference.</p><p>As said I am 100% sure that your framework has methods controlling the already authenticated user and its parameters but I can't seem to generate the best practice to reach this goal. If you could help me achieve this I would be extremely grateful.</p><p>With best wishes.</p><p>Fau</p>]]></content:encoded>
						                            <category domain="https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/">License Manager for Combu</category>                        <dc:creator>fau</dc:creator>
                        <guid isPermaLink="true">https://www.skaredcreations.com/wp/community/combu-addon-licensemanager/offline-license-control-and-login-iteration/#post-1449</guid>
                    </item>
							        </channel>
        </rss>
		