Cancel an IAP subscription - codenameone

IAP was implemented in my application. I followed Steve Hannah's blog post Auto-Renewing Subscriptions in iOS and Android.
There are full-price and discounted subscriptions in the application. When starting a discount subscription, the full-price subscription must be closed. Can this be solved programmatically in the application?
THX.
Péter

No. You can't cancel a subscription programmatically and can't re-initiate a subscription without user interaction. I think Apple/Google might have a "trial" period in their web UIs that allow you to define an SKU that has a discount in the initial period.

Related

Gmail API Users.settings.sendAs: update, does not reflect on web client unless reloaded

I'm using the Gmail API Users.settings.sendAs: update to automatically update the signature settings of our users. The issue I'm having is the change in the signature does not get reflected in the Gmail web client unless the web page gets reloaded. Our users can spend several days, even couple of weeks, without reloading their Gmail web page, making the update almost useless.
I would like to know if there is a way for the web client to pick up the new settings once the changes are made through the API without requiring the user to reload the page?
You may want to use Push Notifications feature in Gmail API. This lets you watch for changes to Gmail mailboxes. You can use this feature to improve the performance of your application. Whenever a mailbox changes, the Gmail API notifies your backend server application.
Then, you may proceed with Synchronizing Clients with Gmail if you need to process changes. As discussed in the documentation, you can also use push notifications to trigger partial synchronization in real-time and only when necessary.
Hope that helps!

Alternatives for Delayed Chained Payments for Mobile

We are currently using PayPal's Delayed Chained Payments for our website transactions (desktop). The problem is with our mobile transactions. We've considered the following solutions:
Embedded Payment Flow (mini-browser) but the problem with this is that the minibrowser is buggy. It does not call the returnUrl or the cancelUrl after a transaction. And it does NOT support Chrome and Safari on iPhone
We've also considered PayPal's Mobile SDK but the SDK for iOS does not support Adaptive Payments.
I was just thinking if there is a way to make a Delayed Payment using Express Checkout and not the Adaptive Payment. An example of the process flow:
On an events website, a provider creates an event and posted an online registration.
On the first day, User A pays the fee. On the second day, User B and on the third day User C. Each payment is made using Express Checkout or Mobile Express Checkout.
Each time a user pays, the website's Paypal account holds the payment.
The event starts and three days after it started, the website would transfer all the funds or payments that it got to the event provider's PayPal account.
Questions: Is the process possible? Would the website still need to pay an additional transaction fee for the fund transfer? And would the website have a way to track which transaction payment it should forward to which provider?
I am a newbie on PayPal so please bear with me.

is Google Calendar suitable as backend for a large application

I'm researching an excellent calendar service to host the events to a specific platform; the idea is to use a quick calendar service to host and manage our events.
Since our platform has a frontend, the customer doesn't have direct access to this calendar, instead, he'll use a frontend logic to create and manage events and our backend will link that business logic with a calendar service like Google Calendar service.
Our business logic will separate and organize many customers and different calendars (multi-tenant), allowing multiple customers to have a good experience with scheduling events and each one accessing his own list of events.
Is Google Calendar suitable as a calendar service backend for a large application like that?
After some research, I found that it is possible to use Google Calendar as a backend for my app. You can leverage that using Google Server-To-Server API or "Two-legged OAuth".
A Google API must be created in Google API panel
You must take care because Google API has a quota to limit your requests
If you want more allowance, you can request by contact Google office
More details in:
https://developers.google.com/api-client-library/php/auth/service-accounts
I'll go with my service from scratch. Also, I found a satisfying service.
- http://calendarserver.org/ (worth a try)

Does bluemix have an API to fetch application monitoring/metrics results?

I see that bluemix has a service called Monitoring and Analytics. All I see from that service are dashboards. I am looking for the information the dashboards are providing in the form of an API. For example, if I want to be notified that my application is down or it is slow running, etc .. Is there a way for me to either receive such alerts or for an API that I can poll periodically?
thank you
The Monitoring & Analytics service does not offer an API to retrieve its collected metrics. We realize that supporting a programmatic interface would be helpful and it's in our backlog to add that capability.
However, M&A does support the other part of your question regarding alerts. There should be an Events tab in your dashboard. In the upper right corner, there's a dropdown to "Configure events policy". If you select it, you can enable Availability alerts ("Is my app down?") and/or Performance Monitoring alerts which are geared to the app's run-time type (Liberty, Node.js, etc.). In that same dropdown you can also "Configure notification". If you specify your email address in the notification dialog, you will start receiving alerts when your Bluemix application is down or running slowly.

How do I enable monthly fee on my webapp? (GAE two interfaces)

I have an App Engine web application (based on python) in which one I would like to offer a "Free" Version and a "Premium" one. I would like to charge a monthly fee to the users that want to use the Premium version of the app, blocking access to premium features to the free users, just as Grooveshark does.
Which is the best way to do this when you're using Google App Engine for developing? I mean, I know that Paypal let you to charge a monthly fee to users but, How can I restrict access between the two interfaces? I'm really lost in this field, Never made a "Paid Model App" before.
Authorization determines what your users are allowed to do in your application based on their roles/permissions.
Basically you would need the following things:
A flag membership status that indicates if a user is Premium or not; this should be set after the payment
A #is_premium decorator to check if, reading the membership flag value
, a given Web Handler can be called by the current user
Have a look to Web2py authorization, Django Auth or Tipfy acl extension for some pretty neat solutions.

Resources